copyWith method

FSThemeData copyWith({
  1. FSColorScheme? colors,
  2. FSTypography? typography,
  3. FSSpacing? spacing,
  4. FSAnimation? animation,
  5. FSCustomBreakpoints? breakpoints,
  6. Brightness? brightness,
})

Create a copy with updated properties

Implementation

FSThemeData copyWith({
  FSColorScheme? colors,
  FSTypography? typography,
  FSSpacing? spacing,
  FSAnimation? animation,
  FSCustomBreakpoints? breakpoints,
  Brightness? brightness,
}) {
  return FSThemeData._internal(
    colors: colors ?? this.colors,
    typography: typography ?? this.typography,
    spacing: spacing ?? this.spacing,
    animation: animation ?? this.animation,
    breakpoints: breakpoints ?? this.breakpoints,
    brightness: brightness ?? this.brightness,
  );
}