ProgressDialog constructor

ProgressDialog({
  1. required BuildContext context,
  2. bool? useRootNavigator,
})

Creates a progress dialog with the given build context.

context - Required build context for showing the dialog useRootNavigator - Whether to show in root navigator. Defaults to true

Implementation

ProgressDialog({required BuildContext context, bool? useRootNavigator})
    : _context = context,
      _useRootNavigator = useRootNavigator ?? true;