mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
Dart schema compiler generated a static getter for enum values, which always created a new map instance for its callers. See #5819. Now it generates const map for better performance and readability.
FlatBuffers for Dart
This package is used to read and write FlatBuffer files in Dart.
Most consumers will want to use the flatc
compiler to generate Dart code from a FlatBuffers IDL schema. For example, the
monster_my_game.sample_generated.dart was generated with flatc from
monster.fbs in the example folder. The generated classes can be used to read
or write binary files that are interoperable with other languages and platforms
supported by FlatBuffers, as illustrated in the example.dart in the
examples folder.
Additional documentation and examples are available at the FlatBuffers site