FakePlatform constructor
- int? numberOfProcessors,
- String? pathSeparator,
- String? operatingSystem,
- String? operatingSystemVersion,
- String? localHostname,
- Map<
String, String> ? environment, - String? executable,
- String? resolvedExecutable,
- Uri? script,
- List<
String> ? executableArguments, - String? packageConfig,
- String? version,
- bool? stdinSupportsAnsi,
- bool? stdoutSupportsAnsi,
- String? localeName,
Creates a new legacy FakePlatform with the specified properties.
Unspecified properties will not be assigned default values (they will
remain null). If an unset non-null value is read, a StateError will
be thrown instead of returning null.
Implementation
FakePlatform({
int? numberOfProcessors,
String? pathSeparator,
String? operatingSystem,
String? operatingSystemVersion,
String? localHostname,
Map<String, String>? environment,
String? executable,
String? resolvedExecutable,
Uri? script,
List<String>? executableArguments,
String? packageConfig,
String? version,
bool? stdinSupportsAnsi,
bool? stdoutSupportsAnsi,
String? localeName,
}) : this._(
// ignore: invalid_use_of_visible_for_testing_member
TestNativePlatform(
numberOfProcessors: numberOfProcessors,
pathSeparator: pathSeparator,
operatingSystem: operatingSystem,
operatingSystemVersion: operatingSystemVersion,
localHostname: localHostname,
environment: environment,
executable: executable,
resolvedExecutable: resolvedExecutable,
script: script,
executableArguments: executableArguments,
packageConfig: packageConfig,
version: version,
stdinSupportsAnsi: stdinSupportsAnsi,
stdoutSupportsAnsi: stdoutSupportsAnsi,
localeName: localeName,
),
);