ModDropDown<T> constructor
const
ModDropDown<T> ({
- Key? key,
- String? label,
- String? hint,
- T? value,
- required List<
DropdownMenuItem< items,T> > - ValueChanged<
T?> ? onChanged, - bool readOnly = false,
- Widget? prefixIcon,
- Widget? suffixIcon,
- TextStyle? style,
- ModDropDownLabelPosition labelPosition = ModDropDownLabelPosition.top,
- String? validator(
- T?
- String? errorText,
- double? width,
- double borderRadius = 8.0,
- AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- bool? enabled,
- FocusNode? focusNode,
- ModDropDownSize size = ModDropDownSize.md,
- bool hasBorder = false,
- Color? backgroundColor,
- Color? borderColor,
- double borderWidth = 1.0,
- double? fontSize,
- double? iconSize,
- bool floatingLabel = false,
- Color? floatingLabelBackgroundColor = Colors.transparent,
Implementation
const ModDropDown({
super.key,
this.label,
this.hint,
this.value,
required this.items,
this.onChanged,
this.readOnly = false,
this.prefixIcon,
this.suffixIcon,
this.style,
this.labelPosition = ModDropDownLabelPosition.top,
this.validator,
this.errorText,
this.width,
this.borderRadius = 8.0,
this.autovalidateMode = AutovalidateMode.onUserInteraction,
this.enabled,
this.focusNode,
this.size = ModDropDownSize.md,
this.hasBorder = false,
this.backgroundColor,
this.borderColor,
this.borderWidth = 1.0,
this.fontSize,
this.iconSize,
this.floatingLabel = false,
this.floatingLabelBackgroundColor = Colors.transparent,
});