CommandResult class
The parsed arguments a LiveCommand receives.
Mirrors the CommandResult used by Metro commands. Values missing from
the call fall back to the defaults declared in CommandBuilder.
Constructors
Properties
Methods
-
get<
T> (String name) → T? - Get a value, falling back to its declared default.
-
getBool(
String name, {bool? defaultValue}) → bool? -
Get a boolean value. Accepts
true/falsebooleans or strings. -
getDouble(
String name, {double? defaultValue}) → double? - Get a double value. Accepts numbers or numeric strings.
-
getInt(
String name, {int? defaultValue}) → int? - Get an integer value. Accepts integers or numeric strings.
-
getString(
String name, {String? defaultValue}) → String? - Get a string value.
-
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