CustomDropdown constructor

const CustomDropdown({
  1. Key? key,
  2. required String label,
  3. required String? value,
  4. required List<String> items,
  5. required dynamic onChanged(
    1. String?
    )?,
  6. String itemBuilder(
    1. String value
    )?,
  7. String? errorText,
  8. bool isRequired = false,
  9. bool enabled = true,
})

Implementation

const CustomDropdown({
  super.key,
  required this.label,
  required this.value,
  required this.items,
  required this.onChanged,
  this.itemBuilder,
  this.errorText,
  this.isRequired = false,
  this.enabled = true,
});