AutoSizeText.richSelectable constructor
const
AutoSizeText.richSelectable(
- TextSpan? textSpan, {
- Key? key,
- Key? textKey,
- TextStyle? style,
- StrutStyle? strutStyle,
- double minFontSize = 12,
- double maxFontSize = double.infinity,
- double stepGranularity = 1,
- List<
double> ? presetFontSizes, - AutoSizeGroup? group,
- TextAlign? textAlign,
- TextDirection? textDirection,
- bool wrapWords = true,
- double? textScaleFactor,
- int? minLines,
- int? maxLines,
- bool autofocus = false,
- bool showCursor = false,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- FocusNode? focusNode,
- Color? cursorColor,
- bool enableInteractiveSelection = true,
- TextSelectionControls? selectionControls,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
- ToolbarOptions? toolbarOptions,
- GestureTapCallback? onTap,
- ScrollPhysics? scrollPhysics,
- SelectionChangedCallback? onSelectionChanged,
Creates a selectable AutoSizeText widget with a TextSpan.
Implementation
const AutoSizeText.richSelectable(
this.textSpan, {
Key? key,
this.textKey,
this.style,
this.strutStyle,
this.minFontSize = 12,
this.maxFontSize = double.infinity,
this.stepGranularity = 1,
this.presetFontSizes,
this.group,
this.textAlign,
this.textDirection,
this.wrapWords = true,
this.textScaleFactor,
this.minLines,
this.maxLines,
this.autofocus = false,
this.showCursor = false,
this.cursorWidth = 2.0,
this.cursorHeight,
this.cursorRadius,
this.focusNode,
this.cursorColor,
this.enableInteractiveSelection = true,
this.selectionControls,
this.dragStartBehavior = DragStartBehavior.start,
this.selectionHeightStyle = ui.BoxHeightStyle.tight,
this.selectionWidthStyle = ui.BoxWidthStyle.tight,
this.toolbarOptions,
this.onTap,
this.scrollPhysics,
this.onSelectionChanged,
}) : assert(textSpan != null, 'A non-null TextSpan must be provided to a AutoSizeText.rich widget.'),
data = null,
locale = null,
softWrap = null,
overflow = null,
overflowReplacement = null,
semanticsLabel = null,
_isSelectableText = true,
super(key: key);