11// Copyright 2022, the Chromium project authors. Please see the AUTHORS file
22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
4+ // ignore_for_file: deprecated_member_use
45
56import 'package:firebase_auth/firebase_auth.dart' as fba;
67import 'package:firebase_dynamic_links/firebase_dynamic_links.dart' ;
@@ -12,7 +13,7 @@ abstract class EmailLinkAuthListener extends AuthListener {
1213 /// Called when the link being is sent to the user's [email] .
1314 void onBeforeLinkSent (String email);
1415
15- /// Called when the link was sucessfully sent to the [email] .
16+ /// Called when the link was successfully sent to the [email] .
1617 void onLinkSent (String email);
1718}
1819
@@ -24,6 +25,7 @@ class EmailLinkAuthProvider
2425 extends AuthProvider <EmailLinkAuthListener , fba.AuthCredential > {
2526 /// A configuration of the dynamic link.
2627 final fba.ActionCodeSettings actionCodeSettings;
28+
2729 final FirebaseDynamicLinks _dynamicLinks;
2830
2931 @override
@@ -39,13 +41,13 @@ class EmailLinkAuthProvider
3941 }
4042
4143 /// {@macro ui.auth.providers.email_link_auth_provider}
42- EmailLinkAuthProvider ({
43- required this .actionCodeSettings,
44+ EmailLinkAuthProvider (
45+ { required this .actionCodeSettings,
4446
45- /// An instance of the [FirebaseDynamicLinks] that should be used to handle
46- /// the link. By default [FirebaseDynamicLinks.instance] is used.
47- FirebaseDynamicLinks ? dynamicLinks,
48- }) : _dynamicLinks = dynamicLinks ?? FirebaseDynamicLinks .instance;
47+ /// An instance of the [FirebaseDynamicLinks] that should be used to handle
48+ /// the link. By default [FirebaseDynamicLinks.instance] is used.
49+ FirebaseDynamicLinks ? dynamicLinks})
50+ : _dynamicLinks = dynamicLinks ?? FirebaseDynamicLinks .instance;
4951
5052 /// Sends a link to the [email] .
5153 void sendLink (String email) {
0 commit comments