copyWith method

SpinnerItemData copyWith({
  1. String? name,
  2. dynamic result,
  3. bool? selected,
  4. bool? isMutex,
  5. List<SpinnerItemData>? items,
})

Implementation

SpinnerItemData copyWith({
  String? name,
  dynamic result,
  bool? selected,
  // bool? highlighted,
  bool? isMutex,
  List<SpinnerItemData>? items,
}) =>
    SpinnerItemData(
      name: name ?? this.name,
      result: result ?? this.result,
      selected: selected ?? this.selected,
      // highlighted: highlighted ?? this.highlighted,
      isMutex: isMutex ?? this.isMutex,
      items: items ?? this.items,
    );