@@ -17,17 +17,17 @@ class FirebaseWebService {
17
17
/// Function to call to ensure the Firebase Service is initalized.
18
18
/// Usually used to ensure that the Web SDK match the behavior
19
19
/// of native SDKs.
20
- EnsureInitializedFunction ensureInitializedFunction ;
20
+ EnsurePluginInitialized ensurePluginInitialized ;
21
21
22
22
/// Creates a new [FirebaseWebService] .
23
23
FirebaseWebService ._(
24
24
this .name, {
25
25
this .override,
26
- this .ensureInitializedFunction ,
26
+ this .ensurePluginInitialized ,
27
27
});
28
28
}
29
29
30
- typedef EnsureInitializedFunction = Future <void > Function ()? ;
30
+ typedef EnsurePluginInitialized = Future <void > Function ()? ;
31
31
32
32
/// The entry point for accessing Firebase.
33
33
///
@@ -43,13 +43,13 @@ class FirebaseCoreWeb extends FirebasePlatform {
43
43
/// Internally registers a Firebase Service to be initialized.
44
44
static void registerService (
45
45
String service, [
46
- EnsureInitializedFunction ? ensureInitializedFunction ,
46
+ EnsurePluginInitialized ? ensurePluginInitialized ,
47
47
]) {
48
48
_services.putIfAbsent (
49
49
service,
50
50
() => FirebaseWebService ._(
51
51
service,
52
- ensureInitializedFunction : ensureInitializedFunction ,
52
+ ensurePluginInitialized : ensurePluginInitialized ,
53
53
),
54
54
);
55
55
}
@@ -274,7 +274,7 @@ class FirebaseCoreWeb extends FirebasePlatform {
274
274
275
275
await Future .wait (
276
276
_services.values.map ((service) {
277
- final ensureInitializedFunction = service.ensureInitializedFunction ;
277
+ final ensureInitializedFunction = service.ensurePluginInitialized ;
278
278
279
279
if (ensureInitializedFunction == null ) {
280
280
return Future .value ();
0 commit comments