TestPlatform.native constructor

  1. @visibleForTesting
TestPlatform.native({
  1. Map<String, String>? environment,
  2. String? executable,
  3. List<String>? executableArguments,
  4. String? lineTerminator,
  5. String? localeName,
  6. String? localHostname,
  7. int? numberOfProcessors,
  8. String? operatingSystem,
  9. String? operatingSystemVersion,
  10. String? packageConfig,
  11. String? pathSeparator,
  12. String? resolvedExecutable,
  13. Uri? script,
  14. bool? stdinSupportsAnsi,
  15. bool? stdoutSupportsAnsi,
  16. 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,
       ),
     );