toggleGrid method

void toggleGrid()

Toggles grid lines on/off.

Implementation

void toggleGrid() {
  _showGrid = !_showGrid;
  notifyListeners();
}