copyWith method

CoolDropdownItem<T> copyWith({
  1. String? label,
  2. bool? isSelected,
  3. Widget? icon,
  4. Widget? selectedIcon,
  5. T? value,
})

Implementation

CoolDropdownItem<T> copyWith({
  String? label,
  bool? isSelected,
  Widget? icon,
  Widget? selectedIcon,
  T? value,
}) {
  return CoolDropdownItem<T>(
    label: label ?? this.label,
    isSelected: isSelected ?? this.isSelected,
    icon: icon ?? this.icon,
    selectedIcon: selectedIcon ?? this.selectedIcon,
    value: value ?? this.value,
  );
}