DCliPlatform class

DCliPlatform exists so we can scope Platform in unit tests to return non-standard results e.g. isWindows == true on a linux platform

Constructors

DCliPlatform()
Returns a singleton providing access to DCli settings.
factory
DCliPlatform.forScope({DCliPlatformOS? overriddenPlatform})
To use this method create a Scope and inject this as a value into the scope.
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
isWindows bool
True if you are running on a Window system.
no setter
overriddenPlatform DCliPlatformOS?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 Properties

scopeKey ↔ ScopeKey<DCliPlatform>
getter/setter pair