AutoSizeText.selectable constructor
const
AutoSizeText.selectable(
- String? data, {
- 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.
If the style
argument is null, the text will use the style from the
closest enclosing DefaultTextStyle.
Implementation
const AutoSizeText.selectable(
this.data, {
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(data != null, 'A non-null String must be provided to a AutoSizeText widget.'),
textSpan = null,
locale = null,
softWrap = null,
overflow = null,
overflowReplacement = null,
semanticsLabel = null,
_isSelectableText = true,
super(key: key);