MTextSpan constructor
const
MTextSpan({
- String? text,
- List<
InlineSpan> ? children, - TextStyle? style,
- GestureRecognizer? recognizer,
- MouseCursor? mouseCursor,
- PointerEnterEventListener? onEnter,
- PointerExitEventListener? onExit,
- String? semanticsLabel,
- Locale? locale,
- bool? spellOut,
- Color? color,
- double? fontSize,
- bool isBold = false,
- FontWeight? fontWeight,
- TextOverflow? overflow,
Implementation
const MTextSpan({
this.text,
this.children,
super.style,
this.recognizer,
MouseCursor? mouseCursor,
this.onEnter,
this.onExit,
this.semanticsLabel,
this.locale,
this.spellOut,
this.color,
this.fontSize,
this.isBold = false,
this.fontWeight,
this.overflow,
}) : mouseCursor = mouseCursor ?? (recognizer == null ? MouseCursor.defer : SystemMouseCursors.click),
assert(!(text == null && semanticsLabel != null));