copyWith method

MotionThemeData copyWith({
  1. bool? isDark,
  2. Color? primaryColor,
  3. Color? secondaryColor,
  4. Color? backgroundColor,
  5. Color? surfaceColor,
  6. Color? cardColor,
  7. bool? glowEffect,
  8. double? borderRadius,
  9. LinearGradient? accentGradient,
})

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,
  );
}