platform_dependencies library

The services a FirebaseApp needs from the platform it runs on.

Subclass PlatformDependencies and pass it to FirebaseApp.withOptions to provide persistent storage, connectivity and background signals, extra request headers, and auth or App Check tokens.

Classes

LocalStorage
Key/value storage of strings, the type of PlatformDependencies.storage.
PlatformDependencies
The services a FirebaseApp needs from the platform it runs on: storage, connectivity and background events, and the auth and App Check token providers.

Typedefs

HeaderBuilder = Future<Map<String, String>> Function()
Returns extra headers for a request (see PlatformDependencies.headersBuilder, which no service of this repository calls).