copyWith method
Creates a copy of this config but with the given fields replaced with the new values.
Implementation
AndroidAutomatorConfig copyWith({
String? host,
String? port,
String? packageName,
String? appName,
Duration? connectionTimeout,
Duration? findTimeout,
KeyboardBehavior? keyboardBehavior,
void Function(String)? logger,
}) {
return AndroidAutomatorConfig(
host: host ?? this.host,
port: port ?? this.port,
packageName: packageName ?? this.packageName,
appName: appName ?? this.appName,
connectionTimeout: connectionTimeout ?? this.connectionTimeout,
findTimeout: findTimeout ?? this.findTimeout,
keyboardBehavior: keyboardBehavior ?? this.keyboardBehavior,
logger: logger ?? this.logger,
);
}