@override void paint(Canvas canvas, Path path, Paint paint) { canvas.drawPath( path, paint..shader = gradient.createShader(path.getBounds())); }