copyWith method

ProgressTheme copyWith({
  1. Color? color,
  2. Color? backgroundColor,
  3. BorderRadiusGeometry? borderRadius,
  4. double? minHeight,
})

Creates a copy of this theme but with the given fields replaced with the new values.

Implementation

ProgressTheme copyWith({
  Color? color,
  Color? backgroundColor,
  BorderRadiusGeometry? borderRadius,
  double? minHeight,
}) {
  return ProgressTheme(
    color: color ?? this.color,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderRadius: borderRadius ?? this.borderRadius,
    minHeight: minHeight ?? this.minHeight,
  );
}