apply property

set apply (NikuText? v)
override

Implementation

set apply(NikuText? 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;
  strutStyle?.apply = v.strutStyle;
  textAlign = v.textAlign ?? textAlign;
  textDirection = v.textDirection ?? textDirection;
  locale = v.locale ?? locale;
  softWrap = v.softWrap ?? softWrap;
  overflow = v.overflow ?? overflow;
  textScaleFactor = v.textScaleFactor ?? textScaleFactor;
  maxLines = v.maxLines ?? maxLines;
  semanticsLabel = v.semanticsLabel ?? semanticsLabel;
  textWidthBasis = v.textWidthBasis ?? textWidthBasis;
  textHeightBehavior = v.textHeightBehavior ?? textHeightBehavior;

  $parent..$merge(v.$parent);
}