copyWith method

EasyDropdownItem copyWith({
  1. String? id,
  2. Widget? widget,
  3. bool? selected,
  4. String? searchableText,
})

Implementation

EasyDropdownItem copyWith({
  String? id,
  Widget? widget,
  bool? selected,
  String? searchableText,
}) {
  return EasyDropdownItem(
    id: id ?? this.id,
    widget: widget ?? this.widget,
    selected: selected ?? this.selected,
    searchableText: searchableText ?? this.searchableText,
  );
}