copyWith method
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,
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,
);
}