Skip to content

Commit 14bd67f

Browse files
authored
fix(app_installations, web): resolve type cast error in getId and getToken for wasm (#17181)
1 parent 76461d7 commit 14bd67f

File tree

1 file changed

+2
-2
lines changed
  • packages/firebase_app_installations/firebase_app_installations_web/lib/src/interop

1 file changed

+2
-2
lines changed

packages/firebase_app_installations/firebase_app_installations_web/lib/src/interop/installations.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ class Installations
3434

3535
Future<String> getId() => (installations_interop.getId(jsObject))
3636
.toDart
37-
.then((value) => value as String);
37+
.then((value) => value.toDart);
3838

3939
Future<String> getToken([bool forceRefresh = false]) =>
4040
(installations_interop.getToken(jsObject, forceRefresh.toJS))
4141
.toDart
42-
.then((value) => value as String);
42+
.then((value) => value.toDart);
4343

4444
JSFunction? _onIdChangedUnsubscribe;
4545

0 commit comments

Comments
 (0)