dropdown<T> static method

AppChipsTextField<T> dropdown<T>({
  1. required AppItemsFetcher<T> itemsFetcher,
  2. Key? key,
  3. List<T> initialItems = const [],
  4. String? labelText,
  5. String? hintText,
  6. ValueChanged<List<T>>? onChanged,
  7. VoidCallback? onDisabledTap,
  8. List<TextInputFormatter>? inputFormatters,
})

Implementation

static AppChipsTextField<T> dropdown<T>({
  required AppItemsFetcher<T> itemsFetcher,
  Key? key,
  List<T> initialItems = const [],
  String? labelText,
  String? hintText,
  ValueChanged<List<T>>? onChanged,
  VoidCallback? onDisabledTap,
  List<TextInputFormatter>? inputFormatters,
}) {
  return _DropdownContent<T>(
    itemsFetcher: itemsFetcher,
    key: key,
    initialItems: initialItems,
    labelText: labelText,
    hintText: hintText,
    onChanged: onChanged,
    onDisabledTap: onDisabledTap,
    inputFormatters: inputFormatters,
  );
}