TextFormControlElement constructor
TextFormControlElement(})
Implementation
TextFormControlElement(context, {
this.isMultiline = false,
this.defaultStyle,
this.isReplacedElement,
}) : super(context, defaultStyle: _defaultStyle, isReplacedElement: true) {
_textSelectionDelegate = EditableTextDelegate(this);
_textInputType = isMultiline ? TextInputType.multiline : TextInputType.text;
_scrollable = KrakenScrollable(
axisDirection: isMultiline ? AxisDirection.down : AxisDirection.right
);
scrollOffset = _scrollable.position;
}