onPaint property
Used to draw the polyline in custom mode. E.g. drawing a color gradient.
If this function callback is provided, the default rendering will be disabled.
Implementation
final Function(
Canvas canvas,
Polyline polyline,
List<Offset> points,
)? onPaint;