apply property

void apply=(NikuTextSpan? v)

Implementation

set apply(NikuTextSpan? v) {
  if (v == null) return;

  if (style == null && v.style != null) style = NikuTextStyle();
  if (strutStyle == null && v.strutStyle != null)
    strutStyle = NikuStrutStyle();

  style!.apply = v.style ?? style;

  text = v.text ?? text;
  children = v.children ?? children;
  recognizer = v.recognizer ?? recognizer;
  mouseCursor = v.mouseCursor;
  onEnter = v.onEnter ?? onEnter;
  onExit = v.onExit ?? onExit;
  semanticsLabel = v.semanticsLabel ?? semanticsLabel;
  locale = v.locale ?? locale;
  spellOut = v.spellOut ?? spellOut;
}