initAppCheck function
void
initAppCheck()
Binds App Check to the app already initialized by initDatabase.
Only needed for appCheckToken and appCheckTokenChanges; the other products attach tokens without it.
Implementation
void initAppCheck() {
ensureLibraryLoaded();
if (!hasFirebase) throw StateError('this build has no Firebase SDK');
final rc = fdbAcInit();
if (rc != 0) {
throw StateError(
rc == -1
? 'initAppCheck before the Firebase app was initialized'
: 'App Check instance could not be created ($rc)',
);
}
}