copyWith method

GridOptions copyWith({
  1. double? gutter,
  2. LuckyMotionOptions? motion,
  3. double? maxStepsPerSecond,
  4. 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);