copyWith method
KinTheme
copyWith({
- Color? primary,
- Color? primaryContainer,
- Color? surface,
- Color? surfaceVariant,
- Color? onSurface,
- Color? onSurfaceVariant,
- Color? outline,
- Color? destructive,
- Color? success,
- Color? warning,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
KinTheme copyWith({
Color? primary,
Color? primaryContainer,
Color? surface,
Color? surfaceVariant,
Color? onSurface,
Color? onSurfaceVariant,
Color? outline,
Color? destructive,
Color? success,
Color? warning,
}) {
return KinTheme(
primary: primary ?? this.primary,
primaryContainer: primaryContainer ?? this.primaryContainer,
surface: surface ?? this.surface,
surfaceVariant: surfaceVariant ?? this.surfaceVariant,
onSurface: onSurface ?? this.onSurface,
onSurfaceVariant: onSurfaceVariant ?? this.onSurfaceVariant,
outline: outline ?? this.outline,
destructive: destructive ?? this.destructive,
success: success ?? this.success,
warning: warning ?? this.warning,
);
}