copyWith method

DataDropDown copyWith({
  1. String? id,
  2. String? name,
  3. Widget? icon,
})

Implementation

DataDropDown copyWith({String? id, String? name, Widget? icon}) {
  return DataDropDown(
    id: id ?? "",
    name: name ?? "",
    icon: icon,
  );
}