draw method
Indicates how this element is drawn.
Implementation
@override
void draw(Canvas canvas) {
if (style.elevation != null) {
canvas.drawShadow(path, style.shadowColor!, style.elevation!, true);
}
if (_fillPaint != null) {
canvas.drawPath(path, _fillPaint!);
}
if (_strokePaint != null) {
canvas.drawPath(_dashPath ?? path, _strokePaint!);
}
}