WheelOptions class final
转盘行为参数,默认采用有效时间与单调停止求解。
- Annotations
Constructors
- WheelOptions({double gutter = 0, double offsetDegree = 0, double stopRange = 0, LuckyMotionOptions motion = const LuckyMotionOptions()})
-
创建参数;
stopRange应在 0–1 内,offsetDegree为顺时针角度。const
Properties
- gutter → double
-
扇区间隙,单位为逻辑像素。
final
- hashCode → int
-
与值相等性一致的哈希。
no setteroverride
- motion → LuckyMotionOptions
-
动画参数。
final
- offsetDegree → double
-
起始偏移角度。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stopRange → double
-
停点随机偏移占扇区宽度的比例。
final
Methods
-
copyWith(
{double? gutter, double? offsetDegree, double? stopRange, LuckyMotionOptions? motion}) → WheelOptions - 返回仅替换非 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