StyledTextAdvance constructor

StyledTextAdvance({
  1. Key? key,
  2. required String text,
  3. bool newLineAsBreaks = true,
  4. TextStyle? style,
  5. Map<String, StyledTextAdvanceTagBase>? tags,
  6. TextAlign? textAlign,
  7. TextDirection? textDirection,
  8. bool? softWrap = true,
  9. TextOverflow? overflow,
  10. double? textScaleFactor,
  11. int? maxLines,
  12. Locale? locale,
  13. StrutStyle? strutStyle,
  14. TextWidthBasis? textWidthBasis,
  15. TextHeightBehavior? textHeightBehavior,
})

Create a text widget with formatting via tags.

Implementation

StyledTextAdvance({
  Key? key,
  required this.text,
  this.newLineAsBreaks = true,
  this.style,
  Map<String, StyledTextAdvanceTagBase>? tags,
  this.textAlign,
  this.textDirection,
  this.softWrap = true,
  this.overflow,
  this.textScaleFactor,
  this.maxLines,
  this.locale,
  this.strutStyle,
  this.textWidthBasis,
  this.textHeightBehavior,
})  : tags = tags ?? const {},
      selectable = false,
      _focusNode = null,
      _showCursor = false,
      _autofocus = false,
      _toolbarOptions = null,
      _contextMenuBuilder = null,
      _selectionControls = null,
      _selectionHeightStyle = null,
      _selectionWidthStyle = null,
      _onSelectionChanged = null,
      _magnifierConfiguration = null,
      _cursorWidth = null,
      _cursorHeight = null,
      _cursorRadius = null,
      _cursorColor = null,
      _dragStartBehavior = DragStartBehavior.start,
      _enableInteractiveSelection = false,
      _onTap = null,
      _scrollPhysics = null,
      _semanticsLabel = null,
      super(key: key);