copyWith method
InsanichessLiveGameSettings
copyWith({
- bool? allowUndo,
- bool? alwaysPromoteToQueen,
- AutoZoomOutOnMoveBehaviour? autoZoomOutOnMove,
override
Returns a new InsanichessLiveGameSettings
object by overriding existing field
values with those given in arguments.
Implementation
@override
InsanichessLiveGameSettings copyWith({
bool? allowUndo,
bool? alwaysPromoteToQueen,
AutoZoomOutOnMoveBehaviour? autoZoomOutOnMove,
}) {
return InsanichessLiveGameSettings(
allowUndo: allowUndo ?? this.allowUndo,
alwaysPromoteToQueen: alwaysPromoteToQueen ?? this.alwaysPromoteToQueen,
autoZoomOutOnMove: autoZoomOutOnMove ?? this.autoZoomOutOnMove,
);
}