shapePaint property
Paint?
get
shapePaint
The paint used to draw shapes from value.settings.shape
directly.
Implementation
Paint? get shapePaint => value.settings.shape.paint;
set
shapePaint
(Paint? paint)
The paint used to draw shapes from value.settings.shape
directly.
Setting this will notify all the listeners of this PainterController that they need to update (it calls notifyListeners). For this reason, this value should only be set between frames, e.g. in response to user actions, not during the build, layout, or paint phases.
Implementation
set shapePaint(Paint? paint) => value = value.copyWith(
settings: value.settings.copyWith(
shape: value.settings.shape.copyWith(
paint: paint,
)));