SparkTextField constructor

const SparkTextField({
  1. Key? key,
  2. required FormGroupItem manage,
  3. String? initialValue,
  4. TextInputType? keyboardType,
  5. TextInputAction? textInputAction,
  6. TextStyle? style,
  7. StrutStyle? strutStyle,
  8. TextDirection? textDirection,
  9. TextAlignVertical? textAlignVertical,
  10. ToolbarOptions? toolbarOptions,
  11. bool? showCursor,
  12. SmartDashesType? smartDashesType,
  13. SmartQuotesType? smartQuotesType,
  14. MaxLengthEnforcement? maxLengthEnforcement,
  15. int? minLines,
  16. int? maxLength,
  17. ValueChanged<String>? onChanged,
  18. GestureTapCallback? onTap,
  19. VoidCallback? onEditingComplete,
  20. ValueChanged<String>? onFieldSubmitted,
  21. FormFieldSetter<String>? onSaved,
  22. FormFieldValidator<String>? validator,
  23. List<TextInputFormatter>? inputFormatters,
  24. double? cursorHeight,
  25. Radius? cursorRadius,
  26. Color? cursorColor,
  27. Brightness? keyboardAppearance,
  28. TextSelectionControls? selectionControls,
  29. InputCounterWidgetBuilder? buildCounter,
  30. ScrollPhysics? scrollPhysics,
  31. Iterable<String>? autoFillHints,
  32. AutovalidateMode? autoValidateMode,
  33. ScrollController? scrollController,
  34. TextCapitalization? textCapitalization,
  35. bool? autoFocus,
  36. bool? readOnly,
  37. String? obscuringCharacter,
  38. bool? obscureText,
  39. bool? autoCorrect,
  40. bool? enableSuggestions,
  41. int? maxLines,
  42. bool? expands,
  43. double? cursorWidth,
  44. EdgeInsets? scrollPadding,
  45. bool? enableIMEPersonalizedLearning,
  46. bool? enableInteractiveSelection,
  47. double? width,
  48. Widget? suffix,
  49. Widget? prefix,
  50. bool? clearable,
  51. Widget? clearableWidget,
  52. bool? keepClearableVisible,
  53. Size? clearableSize,
  54. EdgeInsets? contentPadding,
  55. BoxConstraints? constraints,
  56. String? hitText,
  57. TextStyle? hitTextStyle,
  58. String? counterText,
  59. bool? showCounter,
  60. TextStyle? counterStyle,
  61. TextAlign? textAlign,
  62. bool autoSelectionPosition = true,
  63. Function? onFocus,
  64. bool enabled = true,
})

Implementation

const SparkTextField({
  Key? key,
  required FormGroupItem manage,
  this.initialValue,
  this.keyboardType,
  this.textInputAction,
  this.style,
  this.strutStyle,
  this.textDirection,
  this.textAlignVertical,
  this.toolbarOptions,
  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.cursorColor,
  this.keyboardAppearance,
  this.selectionControls,
  this.buildCounter,
  this.scrollPhysics,
  this.autoFillHints,
  this.autoValidateMode,
  this.scrollController,
  this.textCapitalization,
  this.autoFocus,
  this.readOnly,
  this.obscuringCharacter,
  this.obscureText,
  this.autoCorrect,
  this.enableSuggestions,
  this.maxLines,
  this.expands,
  this.cursorWidth,
  this.scrollPadding,
  this.enableIMEPersonalizedLearning,
  this.enableInteractiveSelection,
  this.width,
  this.suffix,
  this.prefix,
  this.clearable,
  this.clearableWidget,
  this.keepClearableVisible,
  this.clearableSize,
  this.contentPadding,
  this.constraints,
  this.hitText,
  this.hitTextStyle,
  this.counterText,
  this.showCounter,
  this.counterStyle,
  this.textAlign,
  this.autoSelectionPosition = true,
  this.onFocus,
  bool enabled = true,
}) : super(key: key, manage: manage, enabled: enabled);