copyWith method

ProgressOverlayState copyWith({
  1. bool? isProgressShown,
  2. ProgressWidgetBuilder? progressWidgetBuilder()?,
  3. dynamic progress()?,
  4. bool? isOverlayShown,
})

Implementation

ProgressOverlayState copyWith({
  bool? isProgressShown,
  ProgressWidgetBuilder? Function()? progressWidgetBuilder,
  dynamic Function()? progress,
  bool? isOverlayShown,
}) {
  return ProgressOverlayState(
    isProgressShown: isProgressShown ?? this.isProgressShown,
    progressWidgetBuilder: progressWidgetBuilder != null ? progressWidgetBuilder() : this.progressWidgetBuilder,
    progress: progress != null ? progress() : this.progress,
    isOverlayShown: isOverlayShown ?? this.isOverlayShown,
  );
}