metro/live/live_runner library

Classes

LiveOutcome
The outcome of a live command on one app.
LiveProject
The Flutter project Metro is running in.
LiveRunner
Finds the target apps for a live command and runs it on them.

Functions

describeLiveError(Object error) → String
A user-facing message for an error raised while running a live command.
renderRunResult(LiveBlock block, Object? result) → void
Adds the output lines and result of a commands.run result to block.
runLiveCustomCommand(String name, List<String> arguments, {LiveRunner? runner, LiveOptions? options}) → Future<int>
Runs an app-defined live command named name with terminal arguments.

Typedefs

LiveDiscoveryFactory = LiveDiscovery Function(LiveProject project, Duration timeout)
Creates the LiveDiscovery a LiveRunner uses.

Exceptions / Errors

LiveReportedFailure
A command that ran but reported failure through its own output lines.