copyWith method
Implementation
MotionThemeData copyWith({
bool? isDark,
Color? primaryColor,
Color? secondaryColor,
Color? backgroundColor,
Color? surfaceColor,
Color? cardColor,
bool? glowEffect,
double? borderRadius,
LinearGradient? accentGradient,
}) {
return MotionThemeData(
isDark: isDark ?? this.isDark,
primaryColor: primaryColor ?? this.primaryColor,
secondaryColor: secondaryColor ?? this.secondaryColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
surfaceColor: surfaceColor ?? this.surfaceColor,
cardColor: cardColor ?? this.cardColor,
glowEffect: glowEffect ?? this.glowEffect,
borderRadius: borderRadius ?? this.borderRadius,
accentGradient: accentGradient ?? this.accentGradient,
);
}