copyWith method

DropdownMenuItems copyWith({
  1. String? lable,
  2. String? value,
})

Implementation

DropdownMenuItems copyWith({String? lable, String? value}) {
  return DropdownMenuItems(
    lable: lable ?? this.lable,
    value: value ?? this.value,
  );
}