DropdownTextField<T> constructor

const DropdownTextField<T>({
  1. Key? key,
  2. String? label,
  3. String? hint,
  4. EdgeInsets? margin,
  5. required String? validate(
    1. dynamic
    ),
  6. required String title,
  7. EdgeInsets? contentPadding,
  8. Widget? prefixIcon,
  9. EdgeInsets? clearBtnPadding,
  10. EdgeInsets? arrowBtnPadding,
  11. bool useName = true,
  12. bool showClearButton = true,
  13. String? searchHint,
  14. required String itemAsString(
    1. T item
    ),
  15. ValueChanged<T?>? onChange,
  16. double? fontSize,
  17. double? textSize,
  18. double? labelSize,
  19. Color? hintColor,
  20. Color? fillColor,
  21. Color? buttonsColor,
  22. DropdownSearchPopupItemBuilder<T>? itemBuilder,
  23. Future<List<T>> onFind(
    1. String text
    )?,
  24. GlobalKey<State<StatefulWidget>>? dropKey,
  25. dynamic data,
  26. Color? enableColor,
  27. T? selectedItem,
  28. BorderRadius? radius,
  29. 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);