copyWith method

NumberWheelPocket copyWith({
  1. int? number,
  2. String? label,
  3. LuckyFill? fill,
  4. double? weight,
  5. bool? disabled,
})

返回只替换非空参数的副本。

Implementation

NumberWheelPocket copyWith(
        {int? number,
        String? label,
        LuckyFill? fill,
        double? weight,
        bool? disabled}) =>
    NumberWheelPocket(number ?? this.number,
        label: label ?? this.label,
        fill: fill ?? this.fill,
        weight: weight ?? this.weight,
        disabled: disabled ?? this.disabled);