copyWith method
Creates a copy of this ShogiBoardStyle
but with the given fields replaced with the new values.
Implementation
ShogiBoardStyle copyWith({
double? maxSize,
Color? pieceColor,
Color? promotedPieceColor,
Color? cellColor,
Color? borderColor,
bool? usesJapanese,
bool? showCoordIndicators,
CoordIndicatorType? coordIndicatorType,
}) =>
ShogiBoardStyle(
maxSize: maxSize ?? this.maxSize,
pieceColor: pieceColor ?? this.pieceColor,
promotedPieceColor: promotedPieceColor ?? this.promotedPieceColor,
cellColor: cellColor ?? this.cellColor,
borderColor: borderColor ?? this.borderColor,
usesJapanese: usesJapanese ?? this.usesJapanese,
showCoordIndicators: showCoordIndicators ?? this.showCoordIndicators,
coordIndicatorType: coordIndicatorType ?? this.coordIndicatorType,
);