TextFormControlElement constructor

TextFormControlElement(
  1. dynamic context, {
  2. bool isMultiline = false,
  3. Map<String, dynamic>? defaultStyle,
  4. bool? isReplacedElement,
})

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