Fix null UUIDs
This commit is contained in:
parent
1024c4dbd7
commit
960cf0d789
3 changed files with 9 additions and 2 deletions
|
@ -89,7 +89,7 @@ class UUID {
|
|||
factory UUID.generate(int version, {List<Object>? parameters}) {
|
||||
List<Object> params = [];
|
||||
if (parameters == null) {
|
||||
if (version != 4) {
|
||||
if (version != 4 && version != 0) {
|
||||
return UUID.generate(4);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue