copyWith method

LinearProgress copyWith({
  1. double? progress,
  2. int? progressReserve,
  3. ProgressType? progressType,
  4. Color? foreground,
  5. Color? background,
  6. bool? isTextInner,
  7. bool? isTextFollowed,
  8. bool? isProgressOpacityAnim,
  9. TextStyle? textStyle,
  10. String? prefix,
  11. TextStyle? prefixStyle,
  12. String? suffix,
  13. TextStyle? suffixStyle,
  14. double? height,
  15. BorderRadius? borderRadius,
  16. double? width,
  17. double? padding,
  18. double? indicatorRatio,
  19. bool? reverse,
  20. BorderSide? borderSide,
  21. Gradient? foregroundGradient,
  22. Gradient? backgroundGradient,
  23. 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,
  );
}