Implementation
set apply(NikuRichText? v) {
if (v == null) return null;
if (strutStyle == null && v.strutStyle != null)
strutStyle = NikuStrutStyle();
textAlign = v.textAlign ?? textAlign;
textDirection = v.textDirection ?? textDirection;
softWrap = v.softWrap ?? softWrap;
overflow = v.overflow ?? overflow;
textScaleFactor = v.textScaleFactor ?? textScaleFactor;
maxLines = v.maxLines ?? maxLines;
locale = v.locale ?? locale;
strutStyle = v.strutStyle ?? strutStyle;
textWidthBasis = v.textWidthBasis ?? textWidthBasis;
textHeightBehavior = v.textHeightBehavior ?? textHeightBehavior;
$parent..$merge(v.$parent);
}