tom_d4rt_flutter_ast library
D4rt Flutter Material bridge — execute D4rt scripts that produce Flutter widget trees.
This package extends the D4rt interpreter with Flutter Material bridges, allowing D4rt scripts to construct and return real Flutter widgets.
Usage
final d4rt = FlutterD4rt();
// Execute a bundle and get a Widget
final widget = d4rt.build<Widget>(bundle, context);
// Or asynchronously
final widget = await d4rt.buildAsync<Widget>(bundle, context);
Classes
- AstBundle
- A transportable unit containing an entry point and all required modules.
- BridgedEnumValue
-
Represents a specific value of a
BridgedEnum. It holds the value's name, index, and the original native enum value. -
BridgedInstance<
T extends Object> - Represents an instance of a bridged native class.
- D4rtRunner
- D4rtRunner - Execute pre-parsed AST trees without analyzer dependency.
- FlutterD4rt
- D4rt interpreter configured with Flutter Material bridges.
- FlutterMaterialBridges
- Combined bridge registration for flutter_material_bridges.
- ProfilingMetrics
- Shared compile-time profiling switch for the flutter-ast test harness.
Typedefs
- D4rt = D4rtRunner
- Canonical interpreter type name used by generated bridge files.
Exceptions / Errors
- FlutterD4rtException
- Exception thrown by FlutterD4rt operations.