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);
}