startPhoneVerification function

Future<void> startPhoneVerification({
  1. required BuildContext context,
  2. AuthAction? action,
  3. FirebaseAuth? auth,
})

Implementation

Future<void> startPhoneVerification({
  required BuildContext context,
  AuthAction? action,
  FirebaseAuth? auth,
}) async {
  await Navigator.of(context).push(
    createPageRoute(
      context: context,
      builder: (_) => FlutterFireUIActions.inherit(
        from: context,
        child: PhoneInputScreen(action: action),
      ),
    ),
  );
}