copyWith method

  1. @override
InsanichessLiveGameSettings copyWith({
  1. bool? allowUndo,
  2. bool? alwaysPromoteToQueen,
  3. 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,
  );
}