copyWith method

AtomicSelectListItem<T> copyWith({
  1. String? text,
  2. String? subText,
  3. T? value,
  4. IconData? icon,
  5. bool? enabled,
  6. bool? selected,
})

Implementation

AtomicSelectListItem<T> copyWith({
  String? text,
  String? subText,
  T? value,
  IconData? icon,
  bool? enabled,
  bool? selected,
}) {
  return AtomicSelectListItem<T>(
    text: text ?? this.text,
    subText: subText ?? this.subText,
    value: value ?? this.value,
    icon: icon ?? this.icon,
    enabled: enabled ?? this.enabled,
    selected: selected ?? this.selected,
  );
}