copyWith method
FSThemeData
copyWith({
- FSColorScheme? colors,
- FSTypography? typography,
- FSSpacing? spacing,
- FSAnimation? animation,
- FSCustomBreakpoints? breakpoints,
- 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,
);
}