LocalPlatform class

Platform implementation that delegates directly to dart:io.

Inheritance

Constructors

LocalPlatform()
Creates a new LocalPlatform.
const

Properties

environment Map<String, String>
The environment for this process. [...]
read-only, override
executable String
The path of the executable used to run the script in this isolate. [...]
read-only, override
executableArguments List<String>
The flags passed to the executable used to run the script in this isolate. These are the command-line flags between the executable name and the script name. Each fetch of executableArguments returns a new list containing the flags passed to the executable.
read-only, override
localeName String
Get the name of the current locale.
read-only, override
localHostname String
Get the local hostname for the system.
read-only, override
numberOfProcessors int
The number of processors of the machine.
read-only, override
operatingSystem String
A string (linux, macos, windows, android, ios, or fuchsia) representing the operating system.
read-only, override
operatingSystemVersion String
A string representing the version of the operating system or platform.
read-only, override
packageConfig String
The value of the --packages flag passed to the executable used to run the script in this isolate. This is the configuration which specifies how Dart packages are looked up. [...]
read-only, override
packageRoot String
The value of the --package-root flag passed to the executable used to run the script in this isolate. This is the directory in which Dart packages are looked up. [...]
read-only, override
pathSeparator String
The path separator used by the operating system to separate components in file paths.
read-only, override
resolvedExecutable String
The path of the executable used to run the script in this isolate after it has been resolved by the OS. [...]
read-only, override
script Uri
The absolute URI of the script being run in this isolate. [...]
read-only, override
stdinSupportsAnsi bool
When stdin is connected to a terminal, whether ANSI codes are supported.
read-only, override
stdoutSupportsAnsi bool
When stdout is connected to a terminal, whether ANSI codes are supported.
read-only, override
version String
The version of the current Dart runtime. [...]
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
isAndroid bool
True if the operating system is Android.
read-only, inherited
isFuchsia bool
True if the operating system is Fuchsia
read-only, inherited
isIOS bool
True if the operating system is iOS.
read-only, inherited
isLinux bool
True if the operating system is Linux.
read-only, inherited
isMacOS bool
True if the operating system is OS X.
read-only, inherited
isWindows bool
True if the operating system is Windows.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() String
Returns a JSON-encoded representation of this platform.
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited