copyWith method

ModProgressConfig copyWith({
  1. ModProgressPosition? position,
  2. ModProgressType? type,
  3. String? title,
  4. String? subtitle,
  5. double? initialProgress,
  6. Color? backgroundColor,
  7. Color? borderColor,
  8. double? borderWidth,
  9. double? borderRadius,
  10. Color? progressColor,
  11. Color? progressBackgroundColor,
  12. Color? titleColor,
  13. Color? subtitleColor,
  14. double? titleFontSize,
  15. double? subtitleFontSize,
  16. double? width,
  17. double? height,
  18. double? circularSize,
  19. double? circularStrokeWidth,
  20. double? linearHeight,
  21. EdgeInsets? padding,
  22. EdgeInsets? margin,
  23. bool? showCloseButton,
  24. bool? barrierDismissible,
  25. bool? showBarrier,
  26. Color? barrierColor,
  27. List<BoxShadow>? boxShadow,
  28. IconData? icon,
  29. Color? iconColor,
  30. double? iconSize,
})

Creates a copy with modified values

Implementation

ModProgressConfig copyWith({
  ModProgressPosition? position,
  ModProgressType? type,
  String? title,
  String? subtitle,
  double? initialProgress,
  Color? backgroundColor,
  Color? borderColor,
  double? borderWidth,
  double? borderRadius,
  Color? progressColor,
  Color? progressBackgroundColor,
  Color? titleColor,
  Color? subtitleColor,
  double? titleFontSize,
  double? subtitleFontSize,
  double? width,
  double? height,
  double? circularSize,
  double? circularStrokeWidth,
  double? linearHeight,
  EdgeInsets? padding,
  EdgeInsets? margin,
  bool? showCloseButton,
  bool? barrierDismissible,
  bool? showBarrier,
  Color? barrierColor,
  List<BoxShadow>? boxShadow,
  IconData? icon,
  Color? iconColor,
  double? iconSize,
}) {
  return ModProgressConfig(
    position: position ?? this.position,
    type: type ?? this.type,
    title: title ?? this.title,
    subtitle: subtitle ?? this.subtitle,
    initialProgress: initialProgress ?? this.initialProgress,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderColor: borderColor ?? this.borderColor,
    borderWidth: borderWidth ?? this.borderWidth,
    borderRadius: borderRadius ?? this.borderRadius,
    progressColor: progressColor ?? this.progressColor,
    progressBackgroundColor:
        progressBackgroundColor ?? this.progressBackgroundColor,
    titleColor: titleColor ?? this.titleColor,
    subtitleColor: subtitleColor ?? this.subtitleColor,
    titleFontSize: titleFontSize ?? this.titleFontSize,
    subtitleFontSize: subtitleFontSize ?? this.subtitleFontSize,
    width: width ?? this.width,
    height: height ?? this.height,
    circularSize: circularSize ?? this.circularSize,
    circularStrokeWidth: circularStrokeWidth ?? this.circularStrokeWidth,
    linearHeight: linearHeight ?? this.linearHeight,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    showCloseButton: showCloseButton ?? this.showCloseButton,
    barrierDismissible: barrierDismissible ?? this.barrierDismissible,
    showBarrier: showBarrier ?? this.showBarrier,
    barrierColor: barrierColor ?? this.barrierColor,
    boxShadow: boxShadow ?? this.boxShadow,
    icon: icon ?? this.icon,
    iconColor: iconColor ?? this.iconColor,
    iconSize: iconSize ?? this.iconSize,
  );
}