SearchableDropdown<T extends Object> constructor

SearchableDropdown<T extends Object>({
  1. Key? key,
  2. required Future<List<T>?> remoteItems(
    1. String? search
    ),
  3. required T? value,
  4. required String itemLabelFormatter(
    1. T value
    ),
  5. void onChanged(
    1. T? value
    )?,
  6. double? dropDownListHeight,
  7. double? dropDownListWidth,
  8. bool isEnabled = true,
  9. BorderRadius? borderRadius,
  10. double loadingIconSize = 20.0,
  11. TextInputType? keyboardType,
  12. double? cursorHeight,
  13. InputDecoration inputDecoration = const InputDecoration(),
})

Implementation

SearchableDropdown({
  super.key,
  required this.remoteItems,
  required this.value,
  required this.itemLabelFormatter,
  this.onChanged,
  this.dropDownListHeight,
  this.dropDownListWidth,
  this.isEnabled = true,
  this.borderRadius,
  this.loadingIconSize = 20.0,
  this.keyboardType,
  this.cursorHeight,
  this.inputDecoration = const InputDecoration(),
});