SearchableDropdownFormField<T>.future constructor

SearchableDropdownFormField<T>.future({
  1. required Future<List<SearchableDropdownMenuItem<T>>?> futureRequest()?,
  2. SearchableDropdownController<T>? controller,
  3. Key? key,
  4. void onSaved(
    1. T?
    )?,
  5. String? validator(
    1. T?
    )?,
  6. SearchableDropdownMenuItem<T>? initialValue,
  7. AutovalidateMode? autovalidateMode,
  8. Widget? hintText,
  9. EdgeInsetsGeometry? margin,
  10. bool isEnabled = true,
  11. VoidCallback? disabledOnTap,
  12. Widget errorWidget(
    1. String?
    )?,
  13. Widget backgroundDecoration(
    1. Widget
    )?,
  14. void onChanged(
    1. T?
    )?,
  15. Widget? noRecordTex,
  16. Widget? trailingIcon,
  17. Widget? trailingClearIcon,
  18. Widget? leadingIcon,
  19. String? searchHintText,
  20. double? dropDownMaxHeight,
  21. Duration? changeCompletionDelay,
  22. bool isDialogExpanded = true,
  23. bool hasTrailingClearIcon = true,
  24. 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,
      );