beginFill method
Begins filling a shape with the specified color
.
If _holeMode
is true, the method will do nothing and return this
Graphics object.
If antiAlias
is true
, the method applies anti-aliasing to the fill.
Returns this Graphics object after beginning the fill.
Implementation
Graphics beginFill(Color color, [bool antiAlias = true]) {
if (_holeMode) {
return this;
}
final fill = Paint();
fill.style = PaintingStyle.fill;
fill.isAntiAlias = antiAlias;
fill.color = color;
_addFill(fill);
return this;
}