FlutterFormInputPlainText constructor

const FlutterFormInputPlainText(
  1. {required FlutterFormInputController<String> controller,
  2. required String validationMessage,
  3. Key? key,
  4. FocusNode? focusNode,
  5. Widget? label,
  6. InputDecoration? decoration,
  7. TextAlignVertical? textAlignVertical,
  8. bool expands = false,
  9. int? maxLines = 1,
  10. EdgeInsets? scrollPadding,
  11. int? maxLength,
  12. TextInputType? keyboardType,
  13. String? validator(
    1. String?
    )?,
  14. bool enabled = true,
  15. TextStyle? style,
  16. TextCapitalization textCapitalization = TextCapitalization.none}
)

Creates a FlutterFormInputPlainText.

The controller parameter is required. The key, focusNode, label, decoration, textAlignVertical, expands, maxLines, scrollPadding, maxLength, keyboardType, enabled, style, and textCapitalization parameters are optional.

Implementation

const FlutterFormInputPlainText({
  required super.controller,
  required this.validationMessage,
  super.key,
  super.focusNode,
  super.label,
  this.decoration,
  this.textAlignVertical,
  this.expands = false,
  this.maxLines = 1,
  this.scrollPadding,
  this.maxLength,
  this.keyboardType,
  this.validator,
  this.enabled = true,
  this.style,
  this.textCapitalization = TextCapitalization.none,
});