copyWith method
InsanichessSettings
copyWith({
- InsanichessOtbSettings? otb,
- InsanichessLiveGameSettings? live,
- bool? showZoomOutButtonOnLeft,
- bool? showLegalMoves,
Returns a new InsanichessSettings
object by overriding existing field
values with those given in arguments.
Implementation
InsanichessSettings copyWith({
InsanichessOtbSettings? otb,
InsanichessLiveGameSettings? live,
bool? showZoomOutButtonOnLeft,
bool? showLegalMoves,
}) {
return InsanichessSettings(
otb: otb ?? this.otb,
live: live ?? this.live,
showZoomOutButtonOnLeft:
showZoomOutButtonOnLeft ?? this.showZoomOutButtonOnLeft,
showLegalMoves: showLegalMoves ?? this.showLegalMoves,
);
}