mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 20:20:03 +00:00
Fix union unpacking (#8748)
This commit is contained in:
@@ -1337,7 +1337,7 @@ class Monster {
|
||||
).vTableGetNullable(_bc, _bcOffset, 14),
|
||||
color: color,
|
||||
testType: testType,
|
||||
test: test,
|
||||
test: test?.unpack(),
|
||||
test4: test4?.map((e) => e.unpack()).toList(),
|
||||
testarrayofstring: const fb.ListReader<String>(
|
||||
fb.StringReader(),
|
||||
@@ -1405,9 +1405,9 @@ class Monster {
|
||||
lazy: false,
|
||||
).vTableGetNullable(_bc, _bcOffset, 88),
|
||||
anyUniqueType: anyUniqueType,
|
||||
anyUnique: anyUnique,
|
||||
anyUnique: anyUnique?.unpack(),
|
||||
anyAmbiguousType: anyAmbiguousType,
|
||||
anyAmbiguous: anyAmbiguous,
|
||||
anyAmbiguous: anyAmbiguous?.unpack(),
|
||||
vectorOfEnums: const fb.ListReader<Color>(
|
||||
Color.reader,
|
||||
lazy: false,
|
||||
|
||||
Reference in New Issue
Block a user