copyWith method
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,
);
}