SystemPlatformUtils class
Production implementation of PlatformUtils delegating to io.Platform.
- Implemented types
Constructors
- SystemPlatformUtils()
-
Creates a SystemPlatformUtils instance.
const
Properties
-
environment
→ Map<
String, String> -
Retrieves all environment variables.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLinux → bool
-
Whether the current OS is Linux.
no setteroverride
- isMac → bool
-
Whether the current OS is macOS.
no setteroverride
- isWindows → bool
-
Whether the current OS is Windows.
no setteroverride
- pathSeparator → String
-
The character used to separate path segments (e.g. '/' or '').
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getEnv(
String name) → String? -
Retrieves an environment variable by name.
override
-
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