DropdownFormFieldCustom<T> constructor

const DropdownFormFieldCustom<T>({
  1. Key? key,
  2. required List<T?> items,
  3. required Widget itemBuilder(
    1. T? item
    ),
  4. VoidCallback? onTapItem,
  5. void onTapDropdown(
    1. List<T?> items
    )?,
  6. void onLongpressDropdown(
    1. List<T?> items
    )?,
  7. AutovalidateMode? autoValidateMode,
  8. T? selectedItem,
  9. String? validator(
    1. T? value
    )?,
  10. void onChanged(
    1. T? value
    )?,
  11. void onSaved(
    1. T? value
    )?,
  12. bool isExpanded = true,
  13. Widget selectedItemBuilder(
    1. BuildContext context,
    2. T? value
    )?,
  14. TextStyle? textStyle,
  15. TextStyle? labelTextStyle,
  16. double? itemHeight,
  17. String labelText = 'Label Text',
  18. String hintText = 'Hint Text',
  19. String? prefixText,
  20. String? suffixText,
  21. EdgeInsetsGeometry? padding,
  22. Widget? hint,
  23. Widget? suffixIcon,
  24. Widget? prefixIcon,
  25. BorderType borderType = BorderType.outline,
  26. BorderSide borderSide = const BorderSide(),
  27. BorderRadius borderRadius = const BorderRadius.only(topLeft: Radius.circular(4.0), topRight: Radius.circular(4.0), bottomLeft: Radius.circular(4.0), bottomRight: Radius.circular(4.0)),
  28. Color? borderColor,
})

Implementation

const DropdownFormFieldCustom({
  Key? key,
  required this.items,
  required this.itemBuilder,
  this.onTapItem,
  this.onTapDropdown,
  this.onLongpressDropdown,
  this.autoValidateMode,
  this.selectedItem,
  this.validator,
  this.onChanged,
  this.onSaved,
  this.isExpanded = true,
  this.selectedItemBuilder,
  this.textStyle,
  this.labelTextStyle,
  this.itemHeight,
  this.labelText = 'Label Text',
  this.hintText = 'Hint Text',
  this.prefixText,
  this.suffixText,
  this.padding,
  this.hint,
  this.suffixIcon,
  this.prefixIcon,
  this.borderType = BorderType.outline,
  this.borderSide = const BorderSide(),
  this.borderRadius = const BorderRadius.only(
    topLeft: Radius.circular(4.0),
    topRight: Radius.circular(4.0),
    bottomLeft: Radius.circular(4.0),
    bottomRight: Radius.circular(4.0),
  ),
  this.borderColor,
}) : super(key: key);