setSquareState method
void
setSquareState({
- Piece? newState,
Implementation
void setSquareState({Piece? newState}) {
value = value.copyWith(squareState: newState);
notifyListeners();
}