WheelFrame.custom constructor

const WheelFrame.custom({
  1. required WheelFramePaint paintFront,
  2. WheelFramePaint? paintBack,
  3. double preferredInset,
  4. 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;