copyWith method

ULoadingSettings copyWith({
  1. WidgetBuilder? builder,
  2. String? source,
  3. String? package,
  4. UFileData? fileData,
  5. double? imageWidth,
  6. double? imageHeight,
  7. BoxFit? imageFit,
  8. Color? imageColor,
  9. double? imageBorderRadius,
  10. String? imagePlaceholder,
  11. Color? overlayColor,
  12. Duration? animationDuration,
  13. Curve? animationCurve,
  14. double? blurAmount,
  15. bool? dismissible,
  16. bool? useDefaultLoader,
  17. String? text,
  18. Color? textColor,
  19. Color? spinnerColor,
  20. double? spinnerSize,
  21. double? spinnerStrokeWidth,
  22. bool? useProgressIndicator,
  23. double? spacing,
  24. EdgeInsetsGeometry? padding,
  25. EdgeInsetsGeometry? margin,
  26. Color? backgroundColor,
  27. double? borderRadius,
  28. AlignmentGeometry? alignment,
  29. bool? showPercent,
  30. String? percentSuffix,
  31. Color? percentTextColor,
  32. ULoadingPercentBuilder? percentBuilder,
  33. 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,
);