copyWith method
Creates a copy of this ColorThemeData but with the given fields replaced with the new values.
Implementation
@override
ColorThemeData copyWith({
Color? danger,
Color? warning,
Color? success,
Color? info,
}) {
return ColorThemeData(
danger: danger ?? this.danger,
warning: warning ?? this.warning,
success: success ?? this.success,
info: info ?? this.info,
);
}