copyWith method
Create a copy of this option with some fields replaced
Implementation
DropdownOption<T> copyWith({
T? value,
String? label,
String? supportingText,
Widget? icon,
Widget? trailing,
bool? enabled,
bool? showDivider,
String? group,
Widget Function(BuildContext context, bool selected, bool focused)? builder,
}) {
return DropdownOption<T>(
value: value ?? this.value,
label: label ?? this.label, // coverage:ignore-line
supportingText: supportingText ?? this.supportingText,
icon: icon ?? this.icon,
trailing: trailing ?? this.trailing,
enabled: enabled ?? this.enabled,
showDivider: showDivider ?? this.showDivider,
group: group ?? this.group,
builder: builder ?? this.builder,
);
}