From 14cb91c44d544b4ec2b47a892fb5cab54db559d1 Mon Sep 17 00:00:00 2001 From: Erhannis Date: Tue, 1 Aug 2023 04:28:59 -0400 Subject: [PATCH] toBytes no longer validates If you already have a UuidValue, `toBytes` should succeed if at all possible --- lib/uuid_value.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/uuid_value.dart b/lib/uuid_value.dart index f86c5e5..02b68ae 100644 --- a/lib/uuid_value.dart +++ b/lib/uuid_value.dart @@ -51,7 +51,7 @@ class UuidValue { // toBytes() converts the internal string representation to a list of bytes. Uint8List toBytes() { - return UuidParsing.parseAsByteList(uuid); + return UuidParsing.parseAsByteList(uuid, validate: false); } // toString() returns the String representation of the UUID