MTextSpan constructor

const MTextSpan({
  1. String? text,
  2. List<InlineSpan>? children,
  3. TextStyle? style,
  4. GestureRecognizer? recognizer,
  5. MouseCursor? mouseCursor,
  6. PointerEnterEventListener? onEnter,
  7. PointerExitEventListener? onExit,
  8. String? semanticsLabel,
  9. Locale? locale,
  10. bool? spellOut,
  11. Color? color,
  12. double? fontSize,
  13. bool isBold = false,
  14. FontWeight? fontWeight,
  15. 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));