VirtualKeyboardInput constructor

VirtualKeyboardInput({
  1. Key? key,
  2. TextEditingController? inputController,
  3. FocusNode? focusNode,
  4. InputDecoration? decoration = const InputDecoration(),
  5. TextInputAction? textInputAction,
  6. TextCapitalization textCapitalization = TextCapitalization.none,
  7. TextStyle? style,
  8. StrutStyle? strutStyle,
  9. TextAlign textAlign = TextAlign.start,
  10. TextAlignVertical? textAlignVertical,
  11. TextDirection? textDirection,
  12. bool readOnly = false,
  13. bool? showCursor,
  14. bool autofocus = false,
  15. bool obscureText = false,
  16. bool autocorrect = true,
  17. SmartDashesType? smartDashesType,
  18. SmartQuotesType? smartQuotesType,
  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. List<TextInputFormatter>? inputFormatters,
  29. bool? enabled,
  30. double cursorWidth = 2.0,
  31. double? cursorHeight,
  32. Radius? cursorRadius,
  33. Color? cursorColor,
  34. Brightness? keyboardAppearance,
  35. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  36. bool enableInteractiveSelection = true,
  37. TextSelectionControls? selectionControls,
  38. ScrollPhysics? scrollPhysics,
  39. Iterable<String>? autofillHints,
  40. AutovalidateMode? autovalidateMode,
  41. String? restorationId,
  42. bool enableIMEPersonalizedLearning = true,
  43. MouseCursor? mouseCursor,
  44. InputCounterWidgetBuilder? buildCounter,
  45. ScrollController? scrollController,
  46. String? initialValue,
  47. FormFieldValidator<String>? validator,
  48. FormFieldSetter<String>? onSaved,
})

Implementation

VirtualKeyboardInput({
  super.key,
  TextEditingController? inputController,
  this.focusNode,
  this.decoration = const InputDecoration(),
  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.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.maxLengthEnforcement,
  this.onChanged,
  this.onEditingComplete,
  this.onSubmitted,
  this.inputFormatters,
  this.enabled,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.scrollPhysics,
  this.autofillHints,
  this.autovalidateMode,
  this.restorationId,
  this.enableIMEPersonalizedLearning = true,
  this.mouseCursor,
  this.buildCounter,
  ScrollController? scrollController,
  this.initialValue,
  this.validator,
  this.onSaved,
})  : inputController = inputController ?? TextEditingController(),
      scrollController = scrollController ?? ScrollController();