beginHole method

Graphics beginHole()

Set the graphics object into a "hole mode". All subsequent shapes will be treated as holes instead of being filled with the current paint. Call endHole to exit hole mode.

Implementation

Graphics beginHole() {
  if (_holeMode) return this;
  _holeMode = true;
  _currentDrawing = GraphicsDrawingData(null, Path())..isHole = true;
  return this;
}