DropdownTextField<T> constructor
const
DropdownTextField<T> ({
- Key? key,
- String? label,
- String? hint,
- EdgeInsets? margin,
- required String? validate(
- dynamic
- required String title,
- EdgeInsets? contentPadding,
- Widget? prefixIcon,
- EdgeInsets? clearBtnPadding,
- EdgeInsets? arrowBtnPadding,
- bool useName = true,
- bool showClearButton = true,
- String? searchHint,
- required String itemAsString(
- T item
- ValueChanged<
T?> ? onChange, - double? fontSize,
- double? textSize,
- double? labelSize,
- Color? hintColor,
- Color? fillColor,
- Color? buttonsColor,
- DropdownSearchPopupItemBuilder<
T> ? itemBuilder, - Future<
List< onFind(T> >- String text
- GlobalKey<
State< ? dropKey,StatefulWidget> > - dynamic data,
- Color? enableColor,
- T? selectedItem,
- BorderRadius? radius,
- bool showSelectedItem = false,
Implementation
const DropdownTextField(
{Key? key,
this.label,
this.hint,
this.margin,
required this.validate,
required this.title,
this.contentPadding,
this.prefixIcon,
this.clearBtnPadding,
this.arrowBtnPadding,
this.useName = true,
this.showClearButton = true,
this.searchHint,
required this.itemAsString,
this.onChange,
this.fontSize,
this.textSize,
this.labelSize,
this.hintColor,
this.fillColor,
this.buttonsColor,
this.itemBuilder,
this.onFind,
this.dropKey,
this.data,
this.enableColor,
this.selectedItem,
this.radius,
this.showSelectedItem = false})
: super(key: key);