TextFieldRF constructor

TextFieldRF({
  1. Object? model,
  2. required String field,
  3. TextInputType? inputType,
  4. int? maxLength,
  5. int maxLines = 1,
  6. String? hintText,
  7. TextStyle? hintStyle,
  8. String? hint,
  9. String? label,
  10. String? caption,
  11. FormFieldSetter<String>? onSaved,
  12. FormFieldValidator<String>? validator,
  13. bool enabled = true,
  14. ValueChanged<String>? onFieldSubmitted,
  15. Function? validator1,
  16. Function? onChange,
  17. Color? backgroundColor,
  18. Color? textColor,
  19. Color? borderColor,
  20. double? fontSize,
  21. double? borderWidth,
  22. double? borderRadius,
  23. WidgetStyleRF? widgetStyle,
  24. String? fontFamily,
  25. TextStyle? textStyle,
  26. TextAlign textAlign = TextAlign.start,
  27. TextAlignVertical? textAlignVertical,
  28. TextDirection? textDirection,
  29. TextCapitalization textCapitalization = TextCapitalization.none,
  30. TextInputAction? textInputAction,
  31. bool autocorrect = true,
  32. Iterable<String>? autofillHints,
  33. bool autofocus = false,
  34. bool obscureText = false,
  35. Color? cursorColor,
  36. double? cursorHeight,
  37. Radius? cursorRadius,
  38. double cursorWidth = 2.0,
  39. bool expands = false,
  40. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  41. List<TextInputFormatter>? inputFormatters,
  42. dynamic onTap()?,
  43. bool enableInteractiveSelection = true,
  44. bool enableSuggestions = true,
  45. Brightness? keyboardAppearance,
  46. int? minLines,
  47. MouseCursor? mouseCursor,
  48. ScrollController? scrollController,
  49. MaxLengthEnforcement? maxLengthEnforcement,
  50. String obscuringCharacter = '•',
  51. bool? readOnly = false,
  52. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  53. ScrollPhysics? scrollPhysics,
  54. AppPrivateCommandCallback? onAppPrivateCommand,
  55. dynamic onEditingComplete()?,
  56. dynamic onSubmitted(
    1. String?
    )?,
  57. String? restorationId,
  58. bool? showCursor,
  59. InputCounterWidgetBuilder? buildCounter,
  60. TextSelectionControls? selectionControls,
  61. BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
  62. BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
  63. SmartDashesType? smartDashesType,
  64. bool enableIMEPersonalizedLearning = true,
  65. SmartQuotesType? smartQuotesType,
  66. StrutStyle? strutStyle,
  67. ToolbarOptions? toolbarOptions,
  68. Widget? prefixIcon,
  69. Widget? suffixIcon,
  70. InputDecoration? inputDecoration,
  71. BoxDecoration? decoration,
  72. Widget? placeholder,
  73. EdgeInsets padding = const EdgeInsets.only(left: 8, right: 8, top: 2),
  74. InputBorder? inputBorder,
})

Implementation

TextFieldRF({
  this.model,
  required this.field,
  this.inputType,
  this.maxLength,
  this.maxLines = 1,
  this.hintText,
  this.hintStyle,
  this.hint,
  this.label,
  this.caption,
  this.onSaved,
  this.validator,
  this.enabled = true,
  this.onFieldSubmitted,
  this.validator1,
  this.onChange,
  this.backgroundColor,
  this.textColor,
  this.borderColor,
  this.fontSize,
  this.borderWidth,
  this.borderRadius,
  this.widgetStyle,
  this.fontFamily,
  this.textStyle,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textDirection,
  this.textCapitalization = TextCapitalization.none,
  this.textInputAction,
  this.autocorrect = true,
  this.autofillHints,
  this.autofocus = false,
  this.obscureText = false,
  this.cursorColor,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorWidth = 2.0,
  this.expands = false,
  this.dragStartBehavior = DragStartBehavior.start,
  this.inputFormatters,
  this.onTap,
  this.enableInteractiveSelection = true,
  this.enableSuggestions = true,
  this.keyboardAppearance,
  this.minLines,
  this.mouseCursor,
  this.scrollController,
  this.maxLengthEnforcement,
  this.obscuringCharacter = '•',
  this.readOnly = false,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.scrollPhysics,
  this.onAppPrivateCommand,
  this.onEditingComplete,
  this.onSubmitted,
  this.restorationId,
  this.showCursor,
  this.buildCounter,
  this.selectionControls,
  this.selectionHeightStyle = BoxHeightStyle.tight,
  this.selectionWidthStyle = BoxWidthStyle.tight,
  this.smartDashesType,
  this.enableIMEPersonalizedLearning = true,
  this.smartQuotesType,
  this.strutStyle,
  this.toolbarOptions,
  this.prefixIcon,
  this.suffixIcon,
  this.inputDecoration,
  this.decoration,
  this.placeholder,
  this.padding = const EdgeInsets.only(left: 8, right: 8, top: 2),
  this.inputBorder,
});