ProjectService class

Service for managing Flutter project creation and setup operations.

This service encapsulates the core business logic for project operations, separating it from CLI-specific concerns like argument parsing and user interaction. This design enables reuse across different interfaces (CLI, MCP server, etc.).

Constructors

ProjectService({BrickLoader? brickLoader})
Creates a new instance of ProjectService.
const
ProjectService.defaultInstance()
Creates a new instance with default dependencies.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createProject(ProjectCreationRequest request) Future<ProjectCreationResult>
Creates a new Flutter project with MVC architecture.
getDeviceSelection(String workingDirectory, {String? deviceId}) Future<DeviceSelectionInfo>
Determines which device would be selected for flutter run without actually running.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setupProject(ProjectSetupRequest request) Future<ProjectSetupResult>
Sets up a Flutter project by running necessary post-creation commands.
toString() String
A string representation of this object.
inherited

Operators

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