fillPath method

  1. @override
void fillPath(
  1. List path,
  2. PStyle style, {
  3. bool closePath = false,
})
override

Fill a path of points.

Implementation

@override
void fillPath(List path, PStyle style, {bool closePath = false}) {
  if (path.isEmpty) return;

  _setFillStyle(style);
  _drawPath(path, closePath);

  _ctx.fill();
}