copyWith method
GridOptions
copyWith({
- double? gutter,
- LuckyMotionOptions? motion,
- double? maxStepsPerSecond,
- GridReduceMotion? reduceMotion,
返回替换非空参数的副本,例如 value.copyWith() 保留配置。
Implementation
GridOptions copyWith(
{double? gutter,
LuckyMotionOptions? motion,
double? maxStepsPerSecond,
GridReduceMotion? reduceMotion}) =>
GridOptions(
gutter: gutter ?? this.gutter,
motion: motion ?? this.motion,
maxStepsPerSecond: maxStepsPerSecond ?? this.maxStepsPerSecond,
reduceMotion: reduceMotion ?? this.reduceMotion);