toPaint method
Returns a Paint for this brush to fill the given rect
.
Implementation
@override
Paint toPaint(Rect rect, {TextDirection? textDirection}) {
return Paint()
..color = this
..isAntiAlias = true
..style = PaintingStyle.fill;
}