endFill method

Graphics endFill()

Ends the current fill.

If _holeMode is true, the method will call endHole instead of creating a new drawing data object.

Returns this Graphics object after ending the fill.

Implementation

Graphics endFill() {
  if (_holeMode) {
    endHole();
  }
  _currentDrawing = GraphicsDrawingData(null, Path());
  return this;
}