draw method Null safety

  1. @override
void draw(
  1. Canvas canvas,
  2. Path path
)

Implementation

@override
void draw(Canvas canvas, Path path) {
  if (!isVisible) {
    return;
  }
  path.fillType = fillType;
  canvas.drawPath(path, paint);
}