showDifferentMethodSignInDialog function Null safety

Future<void> showDifferentMethodSignInDialog(
  1. {required BuildContext context,
  2. required List<String> availableProviders,
  3. required List<ProviderConfiguration> providerConfigs,
  4. FirebaseAuth? auth,
  5. VoidCallback? onSignedIn}
)

Implementation

Future<void> showDifferentMethodSignInDialog({
  required BuildContext context,
  required List<String> availableProviders,
  required List<ProviderConfiguration> providerConfigs,
  FirebaseAuth? auth,
  VoidCallback? onSignedIn,
}) async {
  await showGeneralDialog(
    context: context,
    pageBuilder: (context, _, __) => DifferentMethodSignInDialog(
      availableProviders: availableProviders,
      providerConfigs: providerConfigs,
      auth: auth,
      onSignedIn: () {
        Navigator.of(context).pop();
      },
    ),
  );
}