copyWith method

LottoDraw copyWith({
  1. List<List<int>>? numbers,
})

返回指定号码的副本,未传参数时保留当前号码。

Implementation

LottoDraw copyWith({List<List<int>>? numbers}) =>
    LottoDraw(numbers ?? this.numbers);