CustomWheelFrame class

A frame painted by functions you provide. See WheelFrame.custom.

Inheritance

Constructors

CustomWheelFrame({required WheelFramePaint paintFront, WheelFramePaint? paintBack, double preferredInset = 0.094, Color? indicatorColor})
Creates a CustomWheelFrame.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
indicatorColor → Color?
A pointer color that suits this frame, used when the wheel doesn't set indicatorColor. Null keeps the default red.
final
paintBackLayer → WheelFramePaint?
Paints behind the slices.
final
paintFrontLayer → WheelFramePaint
Paints in front of the slices.
final
preferredInset → double
The SpinnerWheel.wheelInset this frame is designed for, used when the wheel doesn't set one. It decides how much room the frame gets around the slices.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintBack(Canvas canvas, WheelFrameGeometry geometry) → void
Paints the part of the frame behind the slices.
override
paintFront(Canvas canvas, WheelFrameGeometry geometry) → void
Paints the part of the frame in front of the slices.
override
shouldRepaint(covariant WheelFrame oldFrame) → bool
Whether this frame paints differently from oldFrame.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override