removeGridOverlay method

Future removeGridOverlay({
  1. bool destroy = false,
})

Implementation

Future removeGridOverlay({bool destroy = false}) async {
  if (_grid != null) {
    await _grid!.removeFromScene(scene);
    if (destroy) {
      await _grid!.destroy();
      _grid = null;
    }
  }
}