GridOptions class final

九宫格行为参数。

Annotations

Constructors

GridOptions({double gutter = kLuckyGridDefaultGutter, LuckyMotionOptions motion = const LuckyMotionOptions(), double? maxStepsPerSecond, GridReduceMotion reduceMotion = GridReduceMotion.system})
创建配置;列表由调用方保持不可变。
const

Properties

gutter → double
格子间距,单位逻辑像素。
final
hashCode → int
与配置相等性一致的哈希值。
no setteroverride
maxStepsPerSecond → double?
实验性(可能调整):LuckyGrid 巡航每秒换格数上限;null 不显式限速。
final
motion → LuckyMotionOptions
动画参数;speed 按上游除以 40。
final
reduceMotion → GridReduceMotion
实验性(可能调整):LuckyGrid 减少动效策略;默认跟随系统,无 MediaQuery 时不启用。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({double? gutter, LuckyMotionOptions? motion, double? maxStepsPerSecond, GridReduceMotion? reduceMotion}) → GridOptions
返回替换非空参数的副本,例如 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