apply property

set apply (NikuButton? v)
override

Implementation

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

  if (style == null && v.style != null) style = NikuButtonStyle();

  type = v.type ?? type;
  onPressed = v.onPressed ?? onPressed;
  onLongPress = v.onLongPress ?? onLongPress;
  style?.apply = v.style?.copied ?? style;
  focusNode = v.focusNode ?? focusNode;
  clipBehavior = v.clipBehavior ?? clipBehavior;
  icon = v.icon ?? icon;
  label = v.label ?? label;
  enable = v.enable;

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