BaseCommand class abstract
Base class for CLI commands.
- Implementers
Constructors
Properties
- colorOutput ↔ bool
-
Whether color output is enabled.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- jsonOutput ↔ bool
-
Whether JSON output is enabled.
getter/setter pair
- quiet ↔ bool
-
Whether quiet output is enabled.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verbose ↔ bool
-
Whether verbose output is enabled.
getter/setter pair
Methods
-
formatSize(
int bytes) → String - Formats a size in bytes to human-readable format.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printError(
String message) → void - Prints an error message.
-
printMessage(
String message) → void - Prints a message if not in quiet mode.
-
printVerbose(
String message) → void - Prints verbose message if verbose mode is enabled.
-
repeatString(
String str, int count) → String - Repeats a string a given number of times.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited