FlutterConfig extension type
Extension type that represents Flutter-specific configuration.
Contains Flutter build settings such as entrypoint, assets, and build optimization options.
Uses from_json_to_json for type-safe JSON handling.
Constructors
-
FlutterConfig(Map<
String, dynamic> value) -
const
- FlutterConfig.fromJson(Object? json)
-
Decodes from the
flutter:section of the oka.yaml payload.factory
Properties
-
assets
→ List<
String> -
Asset directories to include in the bundle
no setter
-
buildArgs
→ List<
String> -
Additional arguments to pass to flutter build commands
no setter
- buildMode → String
-
Build mode for Flutter compilation (debug, profile, release)
no setter
- deferredComponents → bool
-
Whether to use Flutter's deferred components feature
no setter
- enableHotReload → bool
-
Whether to enable Flutter's hot reload support in development builds
no setter
- enginePath → String?
-
Path to custom Flutter engine artifacts (advanced usage)
no setter
- engineVersion → String?
-
Custom Flutter engine version to use (if not using system default)
no setter
- entrypoint → String
-
Main entrypoint file for the Flutter app (e.g., "lib/main.dart")
no setter
-
plugins
→ List<
String> -
Flutter plugins to include (auto-detected if empty)
no setter
- startupProbe → bool
-
Compile the generated startup-beacon wrapper instead of the raw
entrypoint, so the verify ladder can prove Dart
main()ran (ADR-0029 D7). Off by default — normal artifacts carry no probe.no setter - targetPlatform → String
-
Target platform for Flutter build (android, ios, etc.)
no setter
- treeShakeIcons → bool
-
Whether to enable Flutter's tree shaking for smaller APKs
no setter
-
value
→ Map<
String, dynamic> -
final
Constants
- empty → const FlutterConfig