SearchableDropdown<T>.future constructor

const SearchableDropdown<T>.future({
  1. required Future<List<SearchableDropdownMenuItem<T>>?> futureRequest()?,
  2. Key? key,
  3. Widget? hintText,
  4. Widget backgroundDecoration(
    1. Widget
    )?,
  5. String? searchHintText,
  6. Widget? noRecordText,
  7. double? dropDownMaxHeight,
  8. EdgeInsetsGeometry? margin,
  9. Widget? trailingIcon,
  10. Widget? trailingClearIcon,
  11. Widget? leadingIcon,
  12. void onChanged(
    1. T?
    )?,
  13. bool isEnabled = true,
  14. VoidCallback? disabledOnTap,
  15. Duration? changeCompletionDelay,
  16. double? width,
  17. bool isDialogExpanded = true,
})

Implementation

const SearchableDropdown.future({
  required Future<List<SearchableDropdownMenuItem<T>>?> Function()?
      futureRequest,
  Key? key,
  Widget? hintText,
  Widget Function(Widget)? backgroundDecoration,
  String? searchHintText,
  Widget? noRecordText,
  double? dropDownMaxHeight,
  EdgeInsetsGeometry? margin,
  Widget? trailingIcon,
  Widget? trailingClearIcon,
  Widget? leadingIcon,
  void Function(T?)? onChanged,
  bool isEnabled = true,
  VoidCallback? disabledOnTap,
  Duration? changeCompletionDelay,
  double? width,
  bool isDialogExpanded = true,
}) : this._(
        futureRequest: futureRequest,
        key: key,
        hintText: hintText,
        backgroundDecoration: backgroundDecoration,
        searchHintText: searchHintText,
        noRecordText: noRecordText,
        dropDownMaxHeight: dropDownMaxHeight,
        margin: margin,
        trailingIcon: trailingIcon,
        trailingClearIcon: trailingClearIcon,
        leadingIcon: leadingIcon,
        onChanged: onChanged,
        isEnabled: isEnabled,
        disabledOnTap: disabledOnTap,
        changeCompletionDelay: changeCompletionDelay,
        width: width,
        isDialogExpanded: isDialogExpanded,
      );