LotsOptions class final
抽签参数;升签与展示都属于减速收尾阶段。
- Annotations
Constructors
- LotsOptions({double maxShakeDeg = _defaultVisible * 1.0, int visibleSticks = _defaultVisible, Duration riseTime = _defaultRiseTime, Duration revealTime = const Duration(milliseconds: 400), bool revealOnSettle = true, LuckyEasing riseEasing = LuckyEasings.quad, LuckyEasing revealEasing = LuckyEasings.cubic, LotsShakeWaveform shakeWaveform = lotsSineWaveform, LotsLayoutAdjuster? layoutAdjuster, LuckyMotionOptions motion = const LuckyMotionOptions(accelerationTime: _defaultRiseTime, decelerationTime: Duration(milliseconds: 900))})
-
创建配置;列表在使用期间不可修改。
const
Properties
- hashCode → int
-
与值相等性一致的哈希值。
no setteroverride
- layoutAdjuster → LotsLayoutAdjuster?
-
默认布局的可选调整器;空时保留默认布局。
final
- maxShakeDeg → double
-
最大摇动角度。
final
- motion → LuckyMotionOptions
-
摇动相位速度、缓动和时间基准。
final
- revealEasing → LuckyEasing
-
翻卡缓动;调用 easeOut(elapsedMs, 0, 1, revealMs) 得到零至一进度。
final
- revealOnSettle → bool
-
是否展示签文卡。
final
- revealTime → Duration
-
展示签文时长。
final
- riseEasing → LuckyEasing
-
升签缓动;调用 easeOut(elapsedMs, 0, 1, riseMs) 得到零至一进度。
final
- riseTime → Duration
-
升签时长。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shakeWaveform → LotsShakeWaveform
-
摇动波形;最终角度为当前振幅乘以 shakeWaveform(shakePhaseDeg)。
final
- visibleSticks → int
-
可见签槽数量,至少一个。
final
Methods
-
copyWith(
{double? maxShakeDeg, int? visibleSticks, Duration? riseTime, Duration? revealTime, bool? revealOnSettle, LuckyEasing? riseEasing, LuckyEasing? revealEasing, LotsShakeWaveform? shakeWaveform, LotsLayoutAdjuster? layoutAdjuster, LuckyMotionOptions? motion}) → LotsOptions - 返回只替换非空参数的副本。
-
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