copyWith method

SlotReel copyWith({
  1. List<int>? order,
  2. double? speed,
  3. int? direction,
  4. Duration? stopDelay,
})

返回仅替换非 null 参数的副本;例如 value.copyWith() 保留全部配置。

Implementation

SlotReel copyWith(
        {List<int>? order,
        double? speed,
        int? direction,
        Duration? stopDelay}) =>
    SlotReel(
        order: order ?? this.order,
        speed: speed ?? this.speed,
        direction: direction ?? this.direction,
        stopDelay: stopDelay ?? this.stopDelay);