mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 14:40:01 +00:00
dart - add Packable interface (#6846)
This commit is contained in:
@@ -751,6 +751,7 @@ class BuilderTest {
|
||||
class ObjectAPITest {
|
||||
void test_tableStat() {
|
||||
final object1 = example.StatT(count: 3, id: "foo", val: 4);
|
||||
expect(object1 is Packable, isTrue);
|
||||
final fbb = Builder();
|
||||
fbb.finish(object1.pack(fbb));
|
||||
final object2 = example.Stat(fbb.buffer).unpack();
|
||||
|
||||
Reference in New Issue
Block a user