beginPaint method

Graphics beginPaint(
  1. Paint paint
)

Begins filling a shape with the specified raw paint instance.

If _holeMode is true, the method will do nothing and return this Graphics object.

Returns this Graphics object after beginning the fill.

Implementation

Graphics beginPaint(Paint paint) {
  if (_holeMode) {
    return this;
  }
  _addFill(paint);
  return this;
}