NikuTextSpan constructor

NikuTextSpan(
  1. String? text, {
  2. Key? key,
  3. List<NikuTextSpan>? children,
  4. NikuTextStyle? style,
  5. GestureRecognizer? recognizer,
  6. MouseCursor? mouseCursor,
  7. PointerEnterEventListener? onEnter,
  8. PointerExitEventListener? onExit,
  9. String? semanticsLabel,
  10. Locale? locale,
  11. bool? spellOut,
})

Implementation

NikuTextSpan(
  this.text, {
  Key? key,
  this.children,
  this.style,
  this.recognizer,
  MouseCursor? mouseCursor,
  this.onEnter,
  this.onExit,
  this.semanticsLabel,
  this.locale,
  this.spellOut,
})  : mouseCursor = mouseCursor ??
          (recognizer == null ? MouseCursor.defer : SystemMouseCursors.click),
      assert(!(text == null && semanticsLabel != null));