copyWith method
返回仅替换非 null 参数的副本;例如 value.copyWith() 保留全部配置。
Implementation
SlotOptions copyWith(
{SlotMode? mode,
int? direction,
double? rowSpacing,
double? colSpacing,
double? cellAspectRatio,
LuckyMotionOptions? motion}) =>
SlotOptions(
mode: mode ?? this.mode,
direction: direction ?? this.direction,
rowSpacing: rowSpacing ?? this.rowSpacing,
colSpacing: colSpacing ?? this.colSpacing,
cellAspectRatio: cellAspectRatio ?? this.cellAspectRatio,
motion: motion ?? this.motion);