SyncTextField constructor

const SyncTextField({
  1. Key? key,
  2. required GetSet<String> gs,
  3. FocusNode? focusNode,
  4. InputDecoration? decoration = const InputDecoration(),
  5. TextInputType? keyboardType,
  6. TextInputAction? textInputAction,
  7. TextCapitalization textCapitalization = TextCapitalization.none,
  8. TextStyle? style,
  9. StrutStyle? strutStyle,
  10. TextAlign textAlign = TextAlign.start,
  11. TextAlignVertical? textAlignVertical,
  12. TextDirection? textDirection,
  13. bool readOnly = false,
  14. bool? showCursor,
  15. bool autofocus = false,
  16. String obscuringCharacter = '•',
  17. bool obscureText = false,
  18. bool autocorrect = true,
  19. bool enableSuggestions = true,
  20. int? maxLines = 1,
  21. int? minLines,
  22. bool expands = false,
  23. int? maxLength,
  24. MaxLengthEnforcement? maxLengthEnforcement,
  25. ValueChanged<String>? onChanged,
  26. VoidCallback? onEditingComplete,
  27. ValueChanged<String>? onSubmitted,
  28. AppPrivateCommandCallback? onAppPrivateCommand,
  29. List<TextInputFormatter>? inputFormatters,
  30. bool? enabled,
  31. double cursorWidth = 2.0,
  32. double? cursorHeight,
  33. Radius? cursorRadius,
  34. Color? cursorColor,
  35. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  36. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  37. Brightness? keyboardAppearance,
  38. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  39. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  40. bool enableInteractiveSelection = true,
  41. TextSelectionControls? selectionControls,
  42. GestureTapCallback? onTap,
  43. MouseCursor? mouseCursor,
  44. InputCounterWidgetBuilder? buildCounter,
  45. ScrollController? scrollController,
  46. ScrollPhysics? scrollPhysics,
  47. Iterable<String>? autofillHints = const <String>[],
  48. Clip clipBehavior = Clip.hardEdge,
  49. String? restorationId,
  50. bool enableIMEPersonalizedLearning = true,
})

Implementation

const SyncTextField({
  super.key,
  required this.gs,
  // forward
  this.focusNode,
  this.decoration = const InputDecoration(),
  this.keyboardType,
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.style,
  this.strutStyle,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textDirection,
  this.readOnly = false,
  this.showCursor,
  this.autofocus = false,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.enableSuggestions = true,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.maxLengthEnforcement,
  this.onChanged,
  this.onEditingComplete,
  this.onSubmitted,
  this.onAppPrivateCommand,
  this.inputFormatters,
  this.enabled,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.selectionHeightStyle = ui.BoxHeightStyle.tight,
  this.selectionWidthStyle = ui.BoxWidthStyle.tight,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.dragStartBehavior = DragStartBehavior.start,
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.onTap,
  this.mouseCursor,
  this.buildCounter,
  this.scrollController,
  this.scrollPhysics,
  this.autofillHints = const <String>[],
  this.clipBehavior = Clip.hardEdge,
  this.restorationId,
  this.enableIMEPersonalizedLearning = true,
});