applyTo method
Returns base with this palette applied. When recolorBoard is false
only the piece colors change.
Implementation
TetrisTheme applyTo(TetrisTheme base, {bool recolorBoard = true}) =>
base.copyWith(
tetrominoColors: pieces,
boardBackground: recolorBoard ? boardBackground : null,
boardBorderColor: recolorBoard ? boardBorderColor : null,
gridLineColor: recolorBoard ? gridLineColor : null,
panelBackground: recolorBoard ? panelBackground : null,
);