copyWith method
ULoadingSettings
copyWith({
- WidgetBuilder? builder,
- String? source,
- String? package,
- UFileData? fileData,
- double? imageWidth,
- double? imageHeight,
- BoxFit? imageFit,
- Color? imageColor,
- double? imageBorderRadius,
- String? imagePlaceholder,
- Color? overlayColor,
- Duration? animationDuration,
- Curve? animationCurve,
- double? blurAmount,
- bool? dismissible,
- bool? useDefaultLoader,
- String? text,
- Color? textColor,
- Color? spinnerColor,
- double? spinnerSize,
- double? spinnerStrokeWidth,
- bool? useProgressIndicator,
- double? spacing,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? backgroundColor,
- double? borderRadius,
- AlignmentGeometry? alignment,
- bool? showPercent,
- String? percentSuffix,
- Color? percentTextColor,
- ULoadingPercentBuilder? percentBuilder,
- VoidCallback? onDismiss,
Implementation
ULoadingSettings copyWith({
WidgetBuilder? builder,
String? source,
String? package,
UFileData? fileData,
double? imageWidth,
double? imageHeight,
BoxFit? imageFit,
Color? imageColor,
double? imageBorderRadius,
String? imagePlaceholder,
Color? overlayColor,
Duration? animationDuration,
Curve? animationCurve,
double? blurAmount,
bool? dismissible,
bool? useDefaultLoader,
String? text,
Color? textColor,
Color? spinnerColor,
double? spinnerSize,
double? spinnerStrokeWidth,
bool? useProgressIndicator,
double? spacing,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
Color? backgroundColor,
double? borderRadius,
AlignmentGeometry? alignment,
bool? showPercent,
String? percentSuffix,
Color? percentTextColor,
ULoadingPercentBuilder? percentBuilder,
VoidCallback? onDismiss,
}) => ULoadingSettings(
builder: builder ?? this.builder,
source: source ?? this.source,
package: package ?? this.package,
fileData: fileData ?? this.fileData,
imageWidth: imageWidth ?? this.imageWidth,
imageHeight: imageHeight ?? this.imageHeight,
imageFit: imageFit ?? this.imageFit,
imageColor: imageColor ?? this.imageColor,
imageBorderRadius: imageBorderRadius ?? this.imageBorderRadius,
imagePlaceholder: imagePlaceholder ?? this.imagePlaceholder,
overlayColor: overlayColor ?? this.overlayColor,
animationDuration: animationDuration ?? this.animationDuration,
animationCurve: animationCurve ?? this.animationCurve,
blurAmount: blurAmount ?? this.blurAmount,
dismissible: dismissible ?? this.dismissible,
useDefaultLoader: useDefaultLoader ?? this.useDefaultLoader,
text: text ?? this.text,
textColor: textColor ?? this.textColor,
spinnerColor: spinnerColor ?? this.spinnerColor,
spinnerSize: spinnerSize ?? this.spinnerSize,
spinnerStrokeWidth: spinnerStrokeWidth ?? this.spinnerStrokeWidth,
useProgressIndicator: useProgressIndicator ?? this.useProgressIndicator,
spacing: spacing ?? this.spacing,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
backgroundColor: backgroundColor ?? this.backgroundColor,
borderRadius: borderRadius ?? this.borderRadius,
alignment: alignment ?? this.alignment,
showPercent: showPercent ?? this.showPercent,
percentSuffix: percentSuffix ?? this.percentSuffix,
percentTextColor: percentTextColor ?? this.percentTextColor,
percentBuilder: percentBuilder ?? this.percentBuilder,
onDismiss: onDismiss ?? this.onDismiss,
);