generator library

The FlutterFlow Cloud project generator, as a library.

Most users run it as a command — dart run flutterflow_cloud:generate — but provisioning scripts can invoke runGenerator (or the pure emitProject) directly. This separate library uses dart:io for local code generation and is not imported by the app runtime libraries.

Classes

GenAggregation
GenField
One declared model field (or file-collection metadata / profile field).
GenFileCollection
GenFunction
Validated immutable public function contract (separate from source mapping).
GenModel
GenParam
GenProjectConfig
GenQuery

Enums

GenFieldKind
The scalar/base kind of a field or param.

Functions

emitProject({required GenProjectConfig config, required String prefix, Map<String, Object?>? options}) → Map<String, String>
Generates every output file for config. Keys are file names relative to the output directory (e.g. models.g.dart).
runGenerator(List<String> args) → Future<int>
Runs the generator; returns the process exit code.