WheelButton class final

同心圆按钮,可附带指针。

Annotations

Constructors

WheelButton({LuckyLength radius = LuckyLength.zero, bool pointer = false, LuckyFill? background, List<LuckyText> texts = const [], List<LuckyImage> images = const []})
创建按钮;radius 百分比相对奖品区半径。
const

Properties

background → LuckyFill?
按钮背景,null 时不绘制指针。
final
hashCode → int
与值相等性一致的哈希。
no setteroverride
images → List<LuckyImage>
图片项。
final
pointer → bool
有背景时是否绘制朝上的三角指针。
final
radius → LuckyLength
按钮半径。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
texts → List<LuckyText>
不自动折行的文字。
final

Methods

copyWith({LuckyLength? radius, bool? pointer, LuckyFill? background, List<LuckyText>? texts, List<LuckyImage>? images}) → WheelButton
返回仅替换非 null 参数的副本。
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
按按钮字段比较。
override