core/commands/launch/launch library
Classes
- LaunchError
- Generic / unrecognised error.
- LaunchInvalidLauncherPid
- The launcher PID could not be parsed from bash output.
- LaunchLauncherFailed
- The nohup launcher process failed to start (non-zero exit).
- LaunchMissingDevice
- No --device was provided.
- LaunchProcessDied
- The flutter process exited before the VM service URI appeared in the log.
- LaunchResult
- Result of a launchApp invocation.
- LaunchSuccess
- App launched successfully. VM service is reachable at vmServiceUri.
- LaunchTimeout
- The VM service URI did not appear within launchTimeoutSeconds. tailLogLines contains the last 10 lines of the log (may be empty).
Functions
-
launchApp(
LaunchInput input, {void onProgress(String) = _noop}) → Future< LaunchResult> - Launches a Flutter app as a detached background process and waits for the VM service URI to appear in the log.