LocalPlatform class Null safety
Platform implementation that delegates directly to dart:io.
Constructors
- LocalPlatform()
- 
          Creates a new LocalPlatform.
            const
Properties
- 
  environment
  → Map<String, String> 
- 
  The environment for this process.
  read-onlyoverride
- executable → String
- 
  The path of the executable used to run the script in this isolate.
  read-onlyoverride
- 
  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 executableArgumentsreturns a new list containing the flags passed to the executable.read-onlyoverride
- hashCode → int
- 
  The hash code for this object.
  read-onlyinherited
- isAndroid → bool
- 
  True if the operating system is Android.
  read-onlyinherited
- isFuchsia → bool
- 
  True if the operating system is Fuchsia
  read-onlyinherited
- isIOS → bool
- 
  True if the operating system is iOS.
  read-onlyinherited
- isLinux → bool
- 
  True if the operating system is Linux.
  read-onlyinherited
- isMacOS → bool
- 
  True if the operating system is OS X.
  read-onlyinherited
- isWindows → bool
- 
  True if the operating system is Windows.
  read-onlyinherited
- localeName → String
- 
  Get the name of the current locale.
  read-onlyoverride
- localHostname → String
- 
  Get the local hostname for the system.
  read-onlyoverride
- numberOfProcessors → int
- 
  The number of processors of the machine.
  read-onlyoverride
- operatingSystem → String
- 
  A string (linux,macos,windows,android,ios, orfuchsia) representing the operating system.read-onlyoverride
- operatingSystemVersion → String
- 
  A string representing the version of the operating system or platform.
  read-onlyoverride
- packageConfig → String?
- 
  The value of the --packagesflag 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-onlyoverride
- pathSeparator → String
- 
  The path separator used by the operating system to separate
components in file paths.
  read-onlyoverride
- resolvedExecutable → String
- 
  The path of the executable used to run the script in this
isolate after it has been resolved by the OS.
  read-onlyoverride
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  read-onlyinherited
- script → Uri
- 
  The absolute URI of the script being run in this
isolate.
  read-onlyoverride
- stdinSupportsAnsi → bool
- 
  When stdin is connected to a terminal, whether ANSI codes are supported.
  read-onlyoverride
- stdoutSupportsAnsi → bool
- 
  When stdout is connected to a terminal, whether ANSI codes are supported.
  read-onlyoverride
- version → String
- 
  The version of the current Dart runtime.
  read-onlyoverride
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 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited