copyWith method
Implementation
DropdownItem<T> copyWith({
T? value,
String? label,
bool? selected,
bool? section,
bool? placeholder,
}) {
return DropdownItem<T>(
value: value ?? this.value,
label: label ?? this.label,
selected: selected ?? this.selected,
section: section ?? this.section,
placeholder: placeholder ?? this.placeholder,
);
}