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