apply property

void apply=(NikuButtonStyle? style)

Implementation

set apply(NikuButtonStyle? style) {
  if (style == null) return;

  textStyleState = style.textStyleState ?? textStyleState;
  backgroundColorState = style.backgroundColorState ?? backgroundColorState;
  foregroundColorState = style.foregroundColorState ?? foregroundColorState;
  overlayColorState = style.overlayColorState ?? overlayColorState;
  shadowColorState = style.shadowColorState ?? shadowColorState;
  elevationState = style.elevationState ?? elevationState;
  paddingState = style.paddingState ?? paddingState;
  minimumSizeState = style.minimumSizeState ?? minimumSizeState;
  fixedSizeState = style.fixedSizeState ?? fixedSizeState;
  maximumSizeState = style.maximumSizeState ?? maximumSizeState;
  sideState = style.sideState ?? sideState;
  shapeState = style.shapeState ?? shapeState;
  mouseCursorState = style.mouseCursorState ?? mouseCursorState;
  visualDensity = style.visualDensity ?? visualDensity;
  tapTargetSize = style.tapTargetSize ?? tapTargetSize;
  animationDuration = style.animationDuration ?? animationDuration;
  enableFeedback = style.enableFeedback ?? enableFeedback;
  alignment = style.alignment ?? alignment;
  splashFactory = style.splashFactory ?? splashFactory;
}