Implementation
set apply(NikuSwitch? v) {
if (v == null) return;
value = v.value ?? value;
onChanged = v.onChanged ?? onChanged;
activeColor = v.activeColor ?? activeColor;
activeTrackColor = v.activeTrackColor ?? activeTrackColor;
inactiveThumbColor = v.inactiveThumbColor ?? inactiveThumbColor;
inactiveTrackColor = v.inactiveTrackColor ?? inactiveTrackColor;
activeThumbImage = v.activeThumbImage ?? activeThumbImage;
onActiveThumbImageError =
v.onActiveThumbImageError ?? onActiveThumbImageError;
inactiveThumbImage = v.inactiveThumbImage ?? inactiveThumbImage;
onInactiveThumbImageError =
v.onInactiveThumbImageError ?? onInactiveThumbImageError;
materialTapTargetSize = v.materialTapTargetSize ?? materialTapTargetSize;
dragStartBehavior = v.dragStartBehavior ?? dragStartBehavior;
mouseCursor = v.mouseCursor ?? mouseCursor;
focusColor = v.focusColor ?? focusColor;
hoverColor = v.hoverColor ?? hoverColor;
splashRadius = v.splashRadius ?? splashRadius;
focusNode = v.focusNode ?? focusNode;
autofocus = v.autofocus ?? autofocus;
thumbColorState = v.thumbColorState ?? thumbColorState;
trackColorState = v.trackColorState ?? trackColorState;
overlayColorState = v.overlayColorState ?? overlayColorState;
thumbIconState = v.thumbIconState ?? thumbIconState;
$parent..$merge(v.$parent);
}