copyWith method

  1. @override
ColorThemeData copyWith({
  1. Color? danger,
  2. Color? warning,
  3. Color? success,
  4. Color? info,
})
override

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,
  );
}