showProgressDialog<T> function

Future<T?> showProgressDialog<T>({
  1. required BuildContext context,
  2. required ProgressManagerInterface progressManager,
  3. bool barrierDismissible = false,
  4. Color? barrierColor,
  5. String? barrierLabel,
  6. bool useSafeArea = true,
  7. bool useRootNavigator = true,
  8. RouteSettings? routeSettings,
  9. Offset? anchorPoint,
  10. TraversalEdgeBehavior? traversalEdgeBehavior,
  11. bool? requestFocus,
  12. AnimationStyle? animationStyle,
})

Implementation

Future<T?> showProgressDialog<T>({
  required BuildContext context,
  required ProgressManagerInterface progressManager,
  bool barrierDismissible = false,
  Color? barrierColor,
  String? barrierLabel,
  bool useSafeArea = true,
  bool useRootNavigator = true,
  RouteSettings? routeSettings,
  Offset? anchorPoint,
  TraversalEdgeBehavior? traversalEdgeBehavior,
  bool? requestFocus,
  AnimationStyle? animationStyle,
}) {
  return showAdaptiveDialog<T>(
    barrierDismissible: barrierDismissible,
    context: context,
    barrierColor: barrierColor,
    barrierLabel: barrierLabel,
    useSafeArea: useSafeArea,
    useRootNavigator: useRootNavigator,
    routeSettings: routeSettings,
    anchorPoint: anchorPoint,
    traversalEdgeBehavior: traversalEdgeBehavior,
    requestFocus: requestFocus,
    animationStyle: animationStyle,
    builder: (context) => ProgressDialog(progressManager: progressManager),
  );
}