Skip to content

Commit 8a49c14

Browse files
Erhannisdaegalus
authored andcommitted
Revert "Made fromByteList and fromList match" - turns out it wasn't
necessary on master This reverts commit 43c00a0.
1 parent c2dd584 commit 8a49c14

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/uuid_value.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ class UuidValue {
88
final String uuid;
99

1010
/// fromByteList() creates a UuidValue from a [Uint8List] of bytes.
11-
factory UuidValue.fromByteList(Uint8List byteList, {int? offset, bool validate = true, ValidationMode validationMode = ValidationMode.strictRFC4122}) {
12-
return UuidValue(UuidParsing.unparse(byteList, offset: offset ?? 0), validate, validationMode);
11+
factory UuidValue.fromByteList(Uint8List byteList, {int? offset}) {
12+
return UuidValue(UuidParsing.unparse(byteList, offset: offset ?? 0));
1313
}
1414

1515
/// fromList() creates a UuidValue from a [List<int>] of bytes.
16-
factory UuidValue.fromList(List<int> byteList, {int? offset, bool validate = true, ValidationMode validationMode = ValidationMode.strictRFC4122}) {
17-
return UuidValue(UuidParsing.unparse(byteList, offset: offset ?? 0), validate, validationMode);
16+
factory UuidValue.fromList(List<int> byteList, {int? offset}) {
17+
return UuidValue(UuidParsing.unparse(byteList, offset: offset ?? 0));
1818
}
19-
19+
2020
/// withValidation() creates a UuidValue from a [uuid] string.
2121
/// Optionally, you can provide a [validationMode] to use when validating
2222
/// the uuid string.

0 commit comments

Comments
 (0)