ElevarmTextDropdownInputField<T> constructor
const
ElevarmTextDropdownInputField<T> ({
- required List<
ElevarmDropdownInputFieldOption< dropdownOptions,T> > - required void dropdownOnChanged(
- T? value
- String? label,
- String? errorText,
- String? hintText,
- bool enabled = true,
- String? helperText,
- ElevarmTextInputFieldSize size = ElevarmTextInputFieldSize.md,
- TextEditingController? controller,
- String? initialValue,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- bool? showCursor,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- MaxLengthEnforcement? maxLengthEnforcement,
- int? minLines,
- int? maxLength,
- void onChanged()?,
- void onTap()?,
- void onEditingComplete()?,
- void onFieldSubmitted()?,
- void onSaved()?,
- String? validator()?,
- List<
TextInputFormatter> ? inputFormatters, - double? cursorHeight,
- Radius? cursorRadius,
- Brightness? keyboardAppearance,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- Widget? buildCounter(
- BuildContext, {
- required int currentLength,
- required bool isFocused,
- required int? maxLength,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints, - AutovalidateMode? autovalidateMode,
- ScrollController? scrollController,
- String? restorationId,
- MouseCursor? mouseCursor,
- bool enableIMEPersonalizedLearning = true,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- double cursorWidth = 2.0,
- int? maxLines = 1,
- String obscuringCharacter = '•',
- bool enableSuggestions = true,
- bool expands = false,
- bool obscureText = false,
- bool autocorrect = true,
- bool autofocus = false,
- bool readOnly = false,
- TextCapitalization textCapitalization = TextCapitalization.none,
- FocusNode? focusNode,
- T? dropdownInitialValue,
- bool dropdownShowTrailingIcon = true,
- bool dropdownEnabled = true,
- bool isRequired = false,
- Key? key,
Implementation
const ElevarmTextDropdownInputField({
required this.dropdownOptions,
required this.dropdownOnChanged,
this.label,
this.errorText,
this.hintText,
this.enabled = true,
this.helperText,
this.size = ElevarmTextInputFieldSize.md,
this.controller,
this.initialValue,
this.keyboardType,
this.textInputAction,
this.showCursor,
this.smartDashesType,
this.smartQuotesType,
this.maxLengthEnforcement,
this.minLines,
this.maxLength,
this.onChanged,
this.onTap,
this.onEditingComplete,
this.onFieldSubmitted,
this.onSaved,
this.validator,
this.inputFormatters,
this.cursorHeight,
this.cursorRadius,
this.keyboardAppearance,
this.enableInteractiveSelection,
this.selectionControls,
this.buildCounter,
this.scrollPhysics,
this.autofillHints,
this.autovalidateMode,
this.scrollController,
this.restorationId,
this.mouseCursor,
this.enableIMEPersonalizedLearning = true,
this.scrollPadding = const EdgeInsets.all(20.0),
this.cursorWidth = 2.0,
this.maxLines = 1,
this.obscuringCharacter = '•',
this.enableSuggestions = true,
this.expands = false,
this.obscureText = false,
this.autocorrect = true,
this.autofocus = false,
this.readOnly = false,
this.textCapitalization = TextCapitalization.none,
this.focusNode,
this.dropdownInitialValue,
this.dropdownShowTrailingIcon = true,
this.dropdownEnabled = true,
this.isRequired = false,
super.key,
});