Settings class

Constructors

Settings()
Returns a singleton providing access to DCli settings.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isLinux bool
True if you are running on a Linux system.
no setter
isMacOS bool
True if you are running on a Mac.
no setter
isVerbose bool
returns true if the -v (verbose) flag was set on the dcli command line. e.g. dcli -v clean
no setter
isWindows bool
True if you are running on a Window system.
no setter
logger → Logger
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

captureLogOutput() Stream<LogRecord>
clearLogCapture() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setVerbose({required bool enabled}) Future<void>
Turns on verbose logging.
toString() String
A string representation of this object.
inherited
verbose(String? message, {Frame? frame}) → void
Logs a message to the console if the verbose settings are on.

Operators

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

Static Properties

listener StreamSubscription<LogRecord>?
getter/setter pair