TestPlatform.native constructor
- @visibleForTesting
- Map<
String, String> ? environment, - String? executable,
- List<
String> ? executableArguments, - String? lineTerminator,
- String? localeName,
- String? localHostname,
- int? numberOfProcessors,
- String? operatingSystem,
- String? operatingSystemVersion,
- String? packageConfig,
- String? pathSeparator,
- String? resolvedExecutable,
- Uri? script,
- bool? stdinSupportsAnsi,
- bool? stdoutSupportsAnsi,
- String? version,
Creates a TestPlatform with a new TestNativePlatform.
Creates a TestNativePlatform.new with the provided arguments, and a TestPlatform with that as nativePlatform.
Equivalent to:
TestPlatform.fromNative(TestNativePlatform(...))
Implementation
@visibleForTesting
TestPlatform.native({
Map<String, String>? environment,
String? executable,
List<String>? executableArguments,
String? lineTerminator,
String? localeName,
String? localHostname,
int? numberOfProcessors,
String? operatingSystem,
String? operatingSystemVersion,
String? packageConfig,
String? pathSeparator,
String? resolvedExecutable,
Uri? script,
bool? stdinSupportsAnsi,
bool? stdoutSupportsAnsi,
String? version,
}) : this._native(
TestNativePlatform(
environment: environment,
executable: executable,
executableArguments: executableArguments,
lineTerminator: lineTerminator,
localeName: localeName,
localHostname: localHostname,
numberOfProcessors: numberOfProcessors,
operatingSystem: operatingSystem,
operatingSystemVersion: operatingSystemVersion,
packageConfig: packageConfig,
pathSeparator: pathSeparator,
resolvedExecutable: resolvedExecutable,
script: script,
stdinSupportsAnsi: stdinSupportsAnsi,
stdoutSupportsAnsi: stdoutSupportsAnsi,
version: version,
),
);