showReauthenticateDialog function Null safety

Future<bool> showReauthenticateDialog(
  1. {required BuildContext context,
  2. required List<ProviderConfiguration> providerConfigs,
  3. FirebaseAuth? auth,
  4. VoidCallback? onSignedIn}
)

Implementation

Future<bool> showReauthenticateDialog({
  required BuildContext context,
  required List<ProviderConfiguration> providerConfigs,
  FirebaseAuth? auth,
  VoidCallback? onSignedIn,
}) async {
  return await showGeneralDialog<bool>(
        context: context,
        pageBuilder: (context, _, __) => ReauthenticateDialog(
          providerConfigs: providerConfigs,
          auth: auth,
          onSignedIn: onSignedIn,
        ),
      ) ??
      false;
}