flat_buffers_generator library
FlatBuffers code generator for Dart using build_runner.
Classes
- FlatcBuilder
-
A builder that invokes the
flatcFlatBuffers compiler to generate Dart files from.fbsschema files.
Functions
-
flatcBuilder(
BuilderOptions options) → Builder -
Factory function to create a FlatcBuilder from
BuilderOptions. -
parseIncludes(
String schema) → List< String> -
Returns the file names referenced by
include "…";directives in a FlatBuffersschema, ignoring comments.
Typedefs
- HasSchemasOnDisk = bool Function(String dir)
-
Signature of the function checking whether a directory (relative to the
package root) contains
.fbsfiles on disk. -
RunProcess
= Future<
ProcessResult> Function(String executable, List<String> arguments, {String? workingDirectory}) -
Signature of the function used to run
flatc, compatible with Process.run.