SlotOptions class final
行为参数;例如 const SlotOptions(cellAspectRatio: 2)。
- Annotations
Constructors
- SlotOptions({SlotMode mode = SlotMode.vertical, int direction = 1, double rowSpacing = 0, double colSpacing = kLuckySlotDefaultColSpacing, double? cellAspectRatio, LuckyMotionOptions motion = const LuckyMotionOptions()})
-
创建参数;比例为 null 时格子为正方形。
const
Properties
- cellAspectRatio → double?
-
格子宽高比,应为有限正数。
final
- colSpacing → double
-
列间距,逻辑像素。
final
- direction → int
-
默认方向,1 或 −1。
final
- hashCode → int
-
与字段值相等性一致的哈希值。
no setteroverride
- mode → SlotMode
-
滚动轴向。
final
- motion → LuckyMotionOptions
-
加减速、时基和停止求解策略。
final
- rowSpacing → double
-
行间距,逻辑像素。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{SlotMode? mode, int? direction, double? rowSpacing, double? colSpacing, double? cellAspectRatio, LuckyMotionOptions? motion}) → SlotOptions -
返回仅替换非 null 参数的副本;例如
value.copyWith()保留全部配置。 -
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