DigitDropdown<T> constructor

const DigitDropdown<T>({
  1. Key? key,
  2. required List<DropdownItem> items,
  3. IconData suffixIcon = Icons.arrow_drop_down,
  4. IconData? textIcon,
  5. required void onChange(
    1. String,
    2. String
    ),
  6. bool isSearchable = true,
  7. DropdownType dropdownType = DropdownType.defaultSelect,
  8. required TextEditingController textEditingController,
  9. String emptyItemText = "No Options available",
  10. DropdownItem? selectedOption,
  11. bool isDisabled = false,
  12. List<ValueMapper>? valueMapper,
  13. String? errorMessage,
  14. String? helpText,
  15. bool readOnly = false,
})

Implementation

const DigitDropdown({
  Key? key,
  required this.items,
  this.suffixIcon = Icons.arrow_drop_down,
  this.textIcon,
  required this.onChange,
  this.isSearchable = true,
  this.dropdownType = DropdownType.defaultSelect,
  required this.textEditingController,
  this.emptyItemText = "No Options available",
  this.selectedOption,
  this.isDisabled = false,
  this.valueMapper,
  this.errorMessage,
  this.helpText,
  this.readOnly = false,
}) : super(key: key);