copyWith method

  1. @override
ComTheme copyWith({
  1. ComShapes? shapes,
  2. ComSpacing? spacing,
  3. Color? success,
  4. Color? error,
  5. Color? warning,
  6. Color? info,
  7. Color? link,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ComTheme copyWith({
  ComShapes? shapes,
  ComSpacing? spacing,
  Color? success,
  Color? error,
  Color? warning,
  Color? info,
  Color? link,
}) {
  return ComTheme(
    shapes: shapes ?? this.shapes,
    spacing: spacing ?? this.spacing,
    success: success ?? this.success,
    error: error ?? this.error,
    warning: warning ?? this.warning,
    info: info ?? this.info,
    link: link ?? this.link,
  );
}