copyWith method
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
NesSnackbarTheme copyWith({
Color? normal,
Color? success,
Color? warning,
Color? error,
}) {
return NesSnackbarTheme(
normal: normal ?? this.normal,
success: success ?? this.success,
warning: warning ?? this.warning,
error: error ?? this.error,
);
}