onBoardChange method

void onBoardChange(
  1. dynamic handler(
    1. Cell
    )
)

Set a handler function, which will be called whenever the grid changes. A change is whenever a cell experiences a change in value.

Implementation

void onBoardChange(Function(Cell) handler) {
  _onChangeHandler = handler;
}