copyWith method

WheelOptions copyWith({
  1. double? gutter,
  2. double? offsetDegree,
  3. double? stopRange,
  4. LuckyMotionOptions? motion,
})

返回仅替换非 null 参数的副本。

Implementation

WheelOptions copyWith(
        {double? gutter,
        double? offsetDegree,
        double? stopRange,
        LuckyMotionOptions? motion}) =>
    WheelOptions(
        gutter: gutter ?? this.gutter,
        offsetDegree: offsetDegree ?? this.offsetDegree,
        stopRange: stopRange ?? this.stopRange,
        motion: motion ?? this.motion);