ElevarmTextDropdownInputField<T> constructor

const ElevarmTextDropdownInputField<T>({
  1. required List<ElevarmDropdownInputFieldOption<T>> dropdownOptions,
  2. required void dropdownOnChanged(
    1. T? value
    ),
  3. String? label,
  4. String? errorText,
  5. String? hintText,
  6. bool enabled = true,
  7. String? helperText,
  8. ElevarmTextInputFieldSize size = ElevarmTextInputFieldSize.md,
  9. TextEditingController? controller,
  10. String? initialValue,
  11. TextInputType? keyboardType,
  12. TextInputAction? textInputAction,
  13. bool? showCursor,
  14. SmartDashesType? smartDashesType,
  15. SmartQuotesType? smartQuotesType,
  16. MaxLengthEnforcement? maxLengthEnforcement,
  17. int? minLines,
  18. int? maxLength,
  19. void onChanged(
    1. String
    )?,
  20. void onTap()?,
  21. void onEditingComplete()?,
  22. void onFieldSubmitted(
    1. String
    )?,
  23. void onSaved(
    1. String?
    )?,
  24. String? validator(
    1. String?
    )?,
  25. List<TextInputFormatter>? inputFormatters,
  26. double? cursorHeight,
  27. Radius? cursorRadius,
  28. Brightness? keyboardAppearance,
  29. bool? enableInteractiveSelection,
  30. TextSelectionControls? selectionControls,
  31. Widget? buildCounter(
    1. BuildContext, {
    2. required int currentLength,
    3. required bool isFocused,
    4. required int? maxLength,
    })?,
  32. ScrollPhysics? scrollPhysics,
  33. Iterable<String>? autofillHints,
  34. AutovalidateMode? autovalidateMode,
  35. ScrollController? scrollController,
  36. String? restorationId,
  37. MouseCursor? mouseCursor,
  38. bool enableIMEPersonalizedLearning = true,
  39. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  40. double cursorWidth = 2.0,
  41. int? maxLines = 1,
  42. String obscuringCharacter = '•',
  43. bool enableSuggestions = true,
  44. bool expands = false,
  45. bool obscureText = false,
  46. bool autocorrect = true,
  47. bool autofocus = false,
  48. bool readOnly = false,
  49. TextCapitalization textCapitalization = TextCapitalization.none,
  50. FocusNode? focusNode,
  51. T? dropdownInitialValue,
  52. bool dropdownShowTrailingIcon = true,
  53. bool dropdownEnabled = true,
  54. bool isRequired = false,
  55. 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,
});