merge method

ModernStyleOptions merge(
  1. ModernStyleOptions? other
)

Merges this with another ModernStyleOptions. Values from other take precedence when not null.

Implementation

ModernStyleOptions merge(ModernStyleOptions? other) {
  if (other == null) return this;
  return copyWith(
    containerDecoration: other.containerDecoration,
    hoverDecoration: other.hoverDecoration,
    activeDecoration: other.activeDecoration,
    padding: other.padding,
    margin: other.margin,
    glowEnabled: other.glowEnabled,
    glowIntensity: other.glowIntensity,
    glowColor: other.glowColor,
    neumorphicEnabled: other.neumorphicEnabled,
    neumorphicDepth: other.neumorphicDepth,
    pulseBorderEnabled: other.pulseBorderEnabled,
    pulseBorderColor: other.pulseBorderColor,
    showSkeleton: other.showSkeleton,
    borderRadius: other.borderRadius,
    border: other.border,
    backgroundColor: other.backgroundColor,
    backgroundGradient: other.backgroundGradient,
    shadows: other.shadows,
    animationDuration: other.animationDuration,
    animationCurve: other.animationCurve,
    animationsEnabled: other.animationsEnabled,
    disabledOpacity: other.disabledOpacity,
    transform: other.transform,
    clipBehavior: other.clipBehavior,
    overlayBuilder: other.overlayBuilder,
    foregroundBuilder: other.foregroundBuilder,
    backgroundBuilder: other.backgroundBuilder,
    constraints: other.constraints,
    minHeight: other.minHeight,
    minWidth: other.minWidth,
    maxHeight: other.maxHeight,
    maxWidth: other.maxWidth,
    height: other.height,
    width: other.width,
    alignment: other.alignment,
    adaptiveStyling: other.adaptiveStyling,
    brightnessOverride: other.brightnessOverride,
    colorFilter: other.colorFilter,
    blurAmount: other.blurAmount,
    backdropBlurEnabled: other.backdropBlurEnabled,
    blendMode: other.blendMode,
  );
}