const
Widget.selectableTextRich(- TextSpan textSpan,
- {Key? key,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- double? textScaleFactor,
- @Default(false) bool showCursor,
- @Default(false) bool autofocus,
- int? minLines,
- int? maxLines,
- @Default(2.0) double cursorWidth,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- @Default(BoxHeightStyle.tight) BoxHeightStyle selectionHeightStyle,
- @Default(BoxWidthStyle.tight) BoxWidthStyle selectionWidthStyle,
- @Default(DragStartBehavior.start) DragStartBehavior dragStartBehavior,
- @Default(true) bool enableInteractiveSelection,
- Callback? onTap,
- ScrollPhysics? scrollPhysics,
- String? semanticsLabel,
- TextHeightBehavior? textHeightBehavior,
- TextWidthBasis? textWidthBasis}
)
Implementation
const factory Widget.selectableTextRich(
TextSpan textSpan, {
Key? key,
TextStyle? style,
StrutStyle? strutStyle,
TextAlign? textAlign,
TextDirection? textDirection,
double? textScaleFactor,
@Default(false) bool showCursor,
@Default(false) bool autofocus,
int? minLines,
int? maxLines,
@Default(2.0) double cursorWidth,
double? cursorHeight,
Radius? cursorRadius,
Color? cursorColor,
@Default(BoxHeightStyle.tight) BoxHeightStyle selectionHeightStyle,
@Default(BoxWidthStyle.tight) BoxWidthStyle selectionWidthStyle,
@Default(DragStartBehavior.start) DragStartBehavior dragStartBehavior,
@Default(true) bool enableInteractiveSelection,
Callback? onTap,
ScrollPhysics? scrollPhysics,
String? semanticsLabel,
TextHeightBehavior? textHeightBehavior,
TextWidthBasis? textWidthBasis,
}) = RichSelectableText;