FlutterAppProcess class

Helpers to create and configure a Flutter application inside the workspace.

Provides synchronous operations to scaffold a Flutter app, update its main.dart, write a workspace-aware pubspec.yaml, and create analysis options for linting.

Constructors

FlutterAppProcess({required FileSystem fs, required ProcessRunner runner, void log(String) = print})

Properties

fs → FileSystem
final
hashCode int
The hash code for this object.
no setterinherited
log → void Function(String)
final
runner ProcessRunner
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createFlutterAppSync({required String projectName}) → void
Scaffolds a new Flutter app by running flutter create <projectName>.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateAnalysisOptionsFileSync({required String projectName}) → void
Writes an analysis_options.yaml that enables Flutter lints and plugin support.
updateFlutterAppPubspecSync({required String dartVersion, required String projectName}) → void
Writes a workspace-aware pubspec.yaml for the Flutter app.
updateFlutterAppWidgetSync({required String projectName}) → void
Writes a customized lib/main.dart that imports the core package and provides a simple Material app scaffold.

Operators

operator ==(Object other) bool
The equality operator.
inherited