WheelFrame.custom constructor
const
WheelFrame.custom({
- required WheelFramePaint paintFront,
- WheelFramePaint? paintBack,
- double preferredInset,
- Color? indicatorColor,
A frame painted by your own functions.
paintFront draws over the slices' edge, paintBack behind them.
Both get the WheelFrameGeometry so they can line up with the slices.
Define them as top-level or static functions rather than inline
closures, so the frame isn't repainted on every rebuild.
Implementation
const factory WheelFrame.custom({
required WheelFramePaint paintFront,
WheelFramePaint? paintBack,
double preferredInset,
Color? indicatorColor,
}) = CustomWheelFrame;