copyWith method

  1. @Deprecated('Use NativePlatform.copyWith instead')
FakePlatform copyWith({
  1. int? numberOfProcessors,
  2. String? pathSeparator,
  3. String? operatingSystem,
  4. String? operatingSystemVersion,
  5. String? localHostname,
  6. Map<String, String>? environment,
  7. String? executable,
  8. String? resolvedExecutable,
  9. Uri? script,
  10. List<String>? executableArguments,
  11. String? packageConfig,
  12. String? version,
  13. bool? stdinSupportsAnsi,
  14. bool? stdoutSupportsAnsi,
  15. String? localeName,
})

Creates a new FakePlatform from this one, with some properties replaced by the given properties.

Implementation

@Deprecated('Use NativePlatform.copyWith instead')
FakePlatform copyWith({
  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,
}) => FakePlatform._(
  // ignore: invalid_use_of_visible_for_testing_member
  _nativePlatform.copyWith(
    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,
  ),
);