copyWith method
LinearProgress
copyWith({
- double? progress,
- int? progressReserve,
- ProgressType? progressType,
- Color? foreground,
- Color? background,
- bool? isTextInner,
- bool? isTextFollowed,
- bool? isProgressOpacityAnim,
- TextStyle? textStyle,
- String? prefix,
- TextStyle? prefixStyle,
- String? suffix,
- TextStyle? suffixStyle,
- double? height,
- BorderRadius? borderRadius,
- double? width,
- double? padding,
- double? indicatorRatio,
- bool? reverse,
- BorderSide? borderSide,
- Gradient? foregroundGradient,
- Gradient? backgroundGradient,
- List<
BoxShadow> ? shadows,
Implementation
LinearProgress copyWith({
double? progress,
int? progressReserve,
ProgressType? progressType,
Color? foreground,
Color? background,
bool? isTextInner,
bool? isTextFollowed,
bool? isProgressOpacityAnim,
TextStyle? textStyle,
String? prefix,
TextStyle? prefixStyle,
String? suffix,
TextStyle? suffixStyle,
double? height,
BorderRadius? borderRadius,
double? width,
double? padding,
double? indicatorRatio,
bool? reverse,
BorderSide? borderSide,
Gradient? foregroundGradient,
Gradient? backgroundGradient,
List<BoxShadow>? shadows
}){
return LinearProgress(
progress: progress ??this.progress,
progressReserve: progressReserve ??this.progressReserve,
progressType: progressType ??this.progressType,
foreground: foreground ??this.foreground,
background: background ??this.background,
isTextInner: isTextInner??this.isTextInner,
isTextFollowed: isTextFollowed??this.isTextFollowed,
isProgressOpacityAnim: isProgressOpacityAnim ?? this.isProgressOpacityAnim,
textStyle: textStyle ??this.textStyle,
prefix: prefix ??this.prefix,
prefixStyle: prefixStyle ??this.prefixStyle,
suffix: suffix ??this.suffix,
suffixStyle: suffixStyle ??this.suffixStyle,
height: height ?? this.height,
width: width ?? this.width,
padding: padding ?? this.padding,
indicatorRatio: indicatorRatio ?? this.indicatorRatio,
reverse: reverse ?? this.reverse,
borderRadius: borderRadius ?? this.borderRadius,
borderSide: borderSide?? this.borderSide,
foregroundGradient: foregroundGradient ??this.foregroundGradient,
backgroundGradient: backgroundGradient ?? this.backgroundGradient,
shadows: shadows ??this.shadows,
);
}