FakePlatform.fromPlatform constructor
- Platform platform
Creates a new FakePlatform with properties values mirroring platform.
Implementation
FakePlatform.fromPlatform(Platform platform)
: this(
numberOfProcessors: platform.numberOfProcessors,
pathSeparator: platform.pathSeparator,
operatingSystem: platform.operatingSystem,
operatingSystemVersion: platform.operatingSystemVersion,
localHostname: platform.localHostname,
environment: Map<String, String>.from(platform.environment),
executable: platform.executable,
resolvedExecutable: platform.resolvedExecutable,
script: platform.script,
executableArguments: List<String>.from(platform.executableArguments),
packageConfig: platform.packageConfig,
version: platform.version,
stdinSupportsAnsi: platform.stdinSupportsAnsi,
stdoutSupportsAnsi: platform.stdoutSupportsAnsi,
localeName: platform.localeName,
);