AutoSizeText.richSelectable constructor

const AutoSizeText.richSelectable(
  1. TextSpan? textSpan, {
  2. Key? key,
  3. Key? textKey,
  4. TextStyle? style,
  5. StrutStyle? strutStyle,
  6. double minFontSize = 12,
  7. double maxFontSize = double.infinity,
  8. double stepGranularity = 1,
  9. List<double>? presetFontSizes,
  10. AutoSizeGroup? group,
  11. TextAlign? textAlign,
  12. TextDirection? textDirection,
  13. bool wrapWords = true,
  14. double? textScaleFactor,
  15. int? minLines,
  16. int? maxLines,
  17. bool autofocus = false,
  18. bool showCursor = false,
  19. double cursorWidth = 2.0,
  20. double? cursorHeight,
  21. Radius? cursorRadius,
  22. FocusNode? focusNode,
  23. Color? cursorColor,
  24. bool enableInteractiveSelection = true,
  25. TextSelectionControls? selectionControls,
  26. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  27. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  28. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  29. ToolbarOptions? toolbarOptions,
  30. GestureTapCallback? onTap,
  31. ScrollPhysics? scrollPhysics,
  32. 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);