StyledTextAdvance constructor
StyledTextAdvance({
- Key? key,
- required String text,
- bool newLineAsBreaks = true,
- TextStyle? style,
- Map<
String, StyledTextAdvanceTagBase> ? tags, - TextAlign? textAlign,
- TextDirection? textDirection,
- bool? softWrap = true,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- Locale? locale,
- StrutStyle? strutStyle,
- TextWidthBasis? textWidthBasis,
- 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);