copyWith method

DropdownItem<T> copyWith({
  1. T? value,
  2. bool? selected,
})

Implementation

DropdownItem<T> copyWith({
  T? value,
  bool? selected,
}) {
  return DropdownItem(
    value: value ?? this.value,
    selected: selected ?? this.selected,
  );
}