copyWith method

DropdownItem<T> copyWith({
  1. T? value,
  2. String? label,
  3. bool? selected,
  4. bool? section,
  5. bool? placeholder,
})

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