LandscapeTextField constructor

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

Implementation

LandscapeTextField({
  this.textInputAction,
  this.decoration,
  this.keyboardType,
  this.style,
  this.strutStyle,
  this.textAlignVertical,
  this.textDirection,
  this.toolbarOptions,
  this.showCursor,
  this.smartDashesType,
  this.smartQuotesType,
  this.maxLines = 1,
  this.minLines,
  this.maxLength,
  this.maxLengthEnforcement,
  this.onChanged,
  this.onEditingComplete,
  this.onSubmitted,
  this.onAppPrivateCommand,
  this.inputFormatters,
  this.enabled,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardAppearance,
  this.selectionControls,
  this.onTap,
  this.mouseCursor,
  this.buildCounter,
  this.scrollPhysics,
  this.scrollController,
  this.autofillHints,
  this.restorationId,
  this.textCapitalization = TextCapitalization.none,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.enableSuggestions = true,
  this.expands = false,
  this.cursorWidth = 2.0,
  this.selectionHeightStyle = ui.BoxHeightStyle.tight,
  this.selectionWidthStyle = ui.BoxWidthStyle.tight,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.dragStartBehavior = DragStartBehavior.start,
  this.enableInteractiveSelection = true,
  this.enableIMEPersonalizedLearning = true,
  this.focusNode,
  this.controller,
  this.textAlign = TextAlign.start,
  this.readOnly = false,
  this.label,
  this.behavior = LandscapeTextFieldBehavior.KEEP_FOCUS,
})  : isFormField = false,
      onFieldSubmitted = null,
      onSaved = null,
      validator = null,
      autovalidateMode = null;