copyWith method

AtomicThemeData copyWith({
  1. String? name,
  2. AtomicColorScheme? colors,
  3. AtomicTypographyTheme? typography,
  4. AtomicSpacingTheme? spacing,
  5. AtomicShadowsTheme? shadows,
  6. AtomicBordersTheme? borders,
  7. AtomicAnimationsTheme? animations,
})

Implementation

AtomicThemeData copyWith({
  String? name,
  AtomicColorScheme? colors,
  AtomicTypographyTheme? typography,
  AtomicSpacingTheme? spacing,
  AtomicShadowsTheme? shadows,
  AtomicBordersTheme? borders,
  AtomicAnimationsTheme? animations,
}) {
  return AtomicThemeData(
    name: name ?? this.name,
    colors: colors ?? this.colors,
    typography: typography ?? this.typography,
    spacing: spacing ?? this.spacing,
    shadows: shadows ?? this.shadows,
    borders: borders ?? this.borders,
    animations: animations ?? this.animations,
  );
}