render method

void render(
  1. Canvas canvas,
  2. Size size
)

Implementation

void render(Canvas canvas, Size size){
  final Rect totalRect = Rect.fromLTWH(0, 0, camera.viewportWidth, camera.viewportHeight);
  canvas.saveLayer(totalRect,Paint());
  _drawGrid(canvas);
  generateMiniMap();
  if(levelInfo[selectedLevel].objects.isEmpty && !isClicked){
    tapLocation = null;
  }

  _hideOutside(canvas, totalRect);
  canvas.restore();
}