LiveOptions class

Flags shared by every metro live:* command and live custom command.

Constructors

LiveOptions({String? device, bool all = false, bool json = false, String? uri, Duration timeout = defaultTimeout})
Creates LiveOptions.
const

Properties

all → bool
--all: run on every running app of this project.
final
device → String?
-d/--device: a 1-based index from metro live:devices or a device name.
final
hashCode → int
The hash code for this object.
no setterinherited
json → bool
--json: print machine-readable output.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeout → Duration
--timeout: seconds to wait for each daemon and app while discovering.
final
uri → String?
--uri: skip discovery and use this VM service address.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

extract(List<String> args) → ({LiveOptions options, List<String> rest})
Removes the shared flags from args, returning them with the remaining arguments in their original order.
parseTimeout(String? value) → Duration
Parses a --timeout value in seconds (fractions allowed).

Constants

defaultTimeout → const Duration
How long discovery waits for each daemon and app by default.
usage → const String
Usage lines for the shared flags.