RawInput({Key key, @required InputValue value, GlobalKey focusKey, bool hideText: false, TextStyle style, Color cursorColor, double textScaleFactor, int maxLines: 1, bool autofocus: false, Color selectionColor, TextSelectionControls selectionControls, @required TargetPlatform platform, TextInputType keyboardType, ValueChanged<InputValue> onChanged, ValueChanged<InputValue> onSubmitted })

Creates a basic text input control.

The value argument must not be null.

Source

RawInput({
  Key key,
  @required this.value,
  this.focusKey,
  this.hideText: false,
  this.style,
  this.cursorColor,
  this.textScaleFactor,
  int maxLines: 1,
  this.autofocus: false,
  this.selectionColor,
  this.selectionControls,
  @required this.platform,
  this.keyboardType,
  this.onChanged,
  this.onSubmitted
}) : maxLines = maxLines, super(
  key: key,
  initialScrollOffset: 0.0,
  scrollDirection: maxLines > 1 ? Axis.vertical : Axis.horizontal
) {
  assert(value != null);
}