BasfTextField constructor

const BasfTextField({
  1. Key? key,
  2. required TextEditingController? controller,
  3. GlobalKey<FormState>? formKey,
  4. String? initialValue,
  5. FocusNode? focusNode,
  6. InputDecoration? decoration,
  7. TextInputType? keyboardType,
  8. TextCapitalization textCapitalization = TextCapitalization.none,
  9. TextInputAction? textInputAction,
  10. TextStyle? style,
  11. StrutStyle? strutStyle,
  12. TextDirection? textDirection,
  13. TextAlign textAlign = TextAlign.start,
  14. TextAlignVertical? textAlignVertical,
  15. bool autofocus = false,
  16. bool readOnly = false,
  17. ToolbarOptions? toolbarOptions,
  18. bool? showCursor,
  19. String obscuringCharacter = '•',
  20. bool obscureText = false,
  21. bool autocorrect = true,
  22. SmartDashesType? smartDashesType,
  23. SmartQuotesType? smartQuotesType,
  24. bool enableSuggestions = true,
  25. MaxLengthEnforcement? maxLengthEnforcement,
  26. int? maxLines = 1,
  27. int? minLines,
  28. bool expands = false,
  29. int? maxLength,
  30. ValueChanged<String>? onChanged,
  31. GestureTapCallback? onTap,
  32. VoidCallback? onEditingComplete,
  33. ValueChanged<String>? onFieldSubmitted,
  34. FormFieldSetter<String>? onSaved,
  35. FormFieldValidator<String>? validator,
  36. List<TextInputFormatter>? inputFormatters,
  37. bool? enabled,
  38. double cursorWidth = 2.0,
  39. double? cursorHeight,
  40. Radius? cursorRadius,
  41. Color? cursorColor,
  42. Brightness? keyboardAppearance,
  43. EdgeInsets scrollPadding = const EdgeInsets.all(30.0),
  44. bool enableInteractiveSelection = true,
  45. TextSelectionControls? selectionControls,
  46. InputCounterWidgetBuilder? buildCounter,
  47. ScrollPhysics? scrollPhysics,
  48. Iterable<String>? autofillHints,
  49. AutovalidateMode? autovalidateMode,
  50. ScrollController? scrollController,
  51. String? restorationId,
  52. bool enableIMEPersonalizedLearning = true,
})

Implementation

const BasfTextField({
  Key? key,
  required this.controller,
  this.formKey,
  this.initialValue,
  this.focusNode,
  this.decoration,
  this.keyboardType,
  this.textCapitalization = TextCapitalization.none,
  this.textInputAction,
  this.style,
  this.strutStyle,
  this.textDirection,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.autofocus = false,
  this.readOnly = false,
  this.toolbarOptions,
  this.showCursor,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.maxLengthEnforcement,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.onChanged,
  this.onTap,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  this.validator,
  this.inputFormatters,
  this.enabled,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(30.0),
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.buildCounter,
  this.scrollPhysics,
  this.autofillHints,
  this.autovalidateMode,
  this.scrollController,
  this.restorationId,
  this.enableIMEPersonalizedLearning = true,
}) : super(key: key);