copyWith method
Creates a copy of this config but with the given fields replaced with the new values.
Implementation
PatrolTesterConfig copyWith({
Duration? existsTimeout,
Duration? visibleTimeout,
Duration? settleTimeout,
SettlePolicy? settlePolicy,
Duration? dragDuration,
Duration? settleBetweenScrollsTimeout,
bool? printLogs,
}) {
return PatrolTesterConfig(
existsTimeout: existsTimeout ?? this.existsTimeout,
visibleTimeout: visibleTimeout ?? this.visibleTimeout,
settleTimeout: settleTimeout ?? this.settleTimeout,
settlePolicy: settlePolicy ?? this.settlePolicy,
dragDuration: dragDuration ?? this.dragDuration,
settleBetweenScrollsTimeout:
settleBetweenScrollsTimeout ?? this.settleBetweenScrollsTimeout,
printLogs: printLogs ?? this.printLogs,
);
}