FirebaseInstallations class

Inheritance
  • Object
  • PlatformInterface
  • FirebasePluginPlatform
  • FirebaseInstallations

Properties

app → FirebaseApp
The FirebaseApp for this current FirebaseInstallations instance.
final
hashCode int
The hash code for this object.
no setterinherited
onIdChange Stream<String>
Sends a new event via a Stream whenever the Installation ID changes.
no setter
pluginConstants Map
Returns any plugin constants this plugin app instance has initialized.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete() Future<void>
Deletes the Firebase Installation and all associated data.
getId() Future<String>
Creates a Firebase Installation if there isn't one for the app and returns the Installation ID.
getToken([bool forceRefresh = false]) Future<String>
Returns an Authentication Token for the current Firebase Installation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance FirebaseInstallations
Returns an instance using the default FirebaseApp and region.
no setter

Static Methods

instanceFor({required FirebaseApp app}) FirebaseInstallations
Returns an instance using a specified FirebaseApp.