copyWith method
LinearProgressIndicatorTheme
copyWith({
- ValueGetter<
Color?> ? color, - ValueGetter<
Gradient?> ? progressGradient, - ValueGetter<
Color?> ? backgroundColor, - ValueGetter<
double?> ? minHeight, - ValueGetter<
BorderRadiusGeometry?> ? borderRadius, - ValueGetter<
bool?> ? showSparks, - ValueGetter<
bool?> ? disableAnimation,
Returns a copy of this theme with the given fields replaced.
Implementation
LinearProgressIndicatorTheme copyWith({
ValueGetter<Color?>? color,
ValueGetter<Gradient?>? progressGradient,
ValueGetter<Color?>? backgroundColor,
ValueGetter<double?>? minHeight,
ValueGetter<BorderRadiusGeometry?>? borderRadius,
ValueGetter<bool?>? showSparks,
ValueGetter<bool?>? disableAnimation,
}) {
return LinearProgressIndicatorTheme(
color: color == null ? this.color : color(),
progressGradient:
progressGradient == null ? this.progressGradient : progressGradient(),
backgroundColor:
backgroundColor == null ? this.backgroundColor : backgroundColor(),
minHeight: minHeight == null ? this.minHeight : minHeight(),
borderRadius: borderRadius == null ? this.borderRadius : borderRadius(),
showSparks: showSparks == null ? this.showSparks : showSparks(),
disableAnimation:
disableAnimation == null ? this.disableAnimation : disableAnimation(),
);
}