WheelSegment class

One slice of a WheelSpinner — caller-supplied, same convention as LeaderboardEntry/VictoryCardTemplate.statLines: this widget never invents reward values or odds, it only renders and animates.

Constructors

WheelSegment({required String label, required Color color, Object? value})
const

Properties

color → Color
final
hashCode → int
The hash code for this object.
no setterinherited
label → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → Object?
Caller-supplied payload (e.g. a coin amount) handed back unchanged via WheelSpinner.onSpinEnd — this widget never reads or interprets it.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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