copyWith method

IOSAutomatorConfig copyWith({
  1. String? host,
  2. String? port,
  3. String? packageName,
  4. String? appName,
  5. Duration? connectionTimeout,
  6. Duration? findTimeout,
  7. KeyboardBehavior? keyboardBehavior,
  8. void logger(
    1. String
    )?,
})

Creates a copy of this config but with the given fields replaced with the new values.

Implementation

IOSAutomatorConfig copyWith({
  String? host,
  String? port,
  String? packageName,
  String? appName,
  Duration? connectionTimeout,
  Duration? findTimeout,
  KeyboardBehavior? keyboardBehavior,
  void Function(String)? logger,
}) {
  return IOSAutomatorConfig(
    host: host ?? this.host,
    port: port ?? this.port,
    appName: appName ?? this.appName,
    connectionTimeout: connectionTimeout ?? this.connectionTimeout,
    findTimeout: findTimeout ?? this.findTimeout,
    keyboardBehavior: keyboardBehavior ?? this.keyboardBehavior,
    logger: logger ?? this.logger,
  );
}