clear method

Graphics clear()

Removes all strokes and fills.

Returns this Graphics object after clearing the drawing queue.

Implementation

Graphics clear() {
  _drawingQueue.clear();
  _holeMode = false;
  _currentDrawing = GraphicsDrawingData(null, Path());
  return this;
}