SearchableDropdownFormField<T>.future constructor
SearchableDropdownFormField<T>.future ({
- required Future<
List< futureRequest()?,SearchableDropdownMenuItem< ?>T> > - SearchableDropdownController<
T> ? controller, - Key? key,
- void onSaved(
- T?
- String? validator(
- T?
- SearchableDropdownMenuItem<
T> ? initialValue, - AutovalidateMode? autovalidateMode,
- Widget? hintText,
- EdgeInsetsGeometry? margin,
- bool isEnabled = true,
- VoidCallback? disabledOnTap,
- Widget errorWidget()?,
- Widget backgroundDecoration()?,
- void onChanged(
- T?
- Widget? noRecordTex,
- Widget? trailingIcon,
- Widget? trailingClearIcon,
- Widget? leadingIcon,
- String? searchHintText,
- double? dropDownMaxHeight,
- Duration? changeCompletionDelay,
- bool isDialogExpanded = true,
- bool hasTrailingClearIcon = true,
- double? dialogOffset,
Implementation
SearchableDropdownFormField.future({
required Future<List<SearchableDropdownMenuItem<T>>?> Function()?
futureRequest,
SearchableDropdownController<T>? controller,
Key? key,
void Function(T?)? onSaved,
String? Function(T?)? validator,
SearchableDropdownMenuItem<T>? initialValue,
AutovalidateMode? autovalidateMode,
Widget? hintText,
EdgeInsetsGeometry? margin,
bool isEnabled = true,
VoidCallback? disabledOnTap,
Widget Function(String?)? errorWidget,
Widget Function(Widget)? backgroundDecoration,
void Function(T?)? onChanged,
Widget? noRecordTex,
Widget? trailingIcon,
Widget? trailingClearIcon,
Widget? leadingIcon,
String? searchHintText,
double? dropDownMaxHeight,
Duration? changeCompletionDelay,
bool isDialogExpanded = true,
bool hasTrailingClearIcon = true,
double? dialogOffset,
}) : this._(
controller: controller,
futureRequest: futureRequest,
key: key,
onSaved: onSaved,
validator: validator,
initialValue: initialValue?.value,
initialFutureValue: initialValue,
autovalidateMode: autovalidateMode,
hintText: hintText,
margin: margin,
isEnabled: isEnabled,
disabledOnTap: disabledOnTap,
errorWidget: errorWidget,
backgroundDecoration: backgroundDecoration,
onChanged: onChanged,
noRecordText: noRecordTex,
trailingIcon: trailingIcon,
trailingClearIcon: trailingClearIcon,
leadingIcon: leadingIcon,
searchHintText: searchHintText,
dropDownMaxHeight: dropDownMaxHeight,
changeCompletionDelay: changeCompletionDelay,
isDialogExpanded: isDialogExpanded,
hasTrailingClearIcon: hasTrailingClearIcon,
dialogOffset: dialogOffset,
);