FirebasePlatform class abstract
The interface that implementations of firebase_core must extend.
Platform implementations should extend this class rather than implement it
as firebase_core does not consider newly added methods to be breaking
changes. Extending this class (using extends) ensures that the subclass
will get the default implementation, while platform implementations that
implements this interface will be broken by newly added
FirebasePlatform methods.
- Inheritance
-
- Object
- PlatformInterface
- FirebasePlatform
- Implementers
Constructors
Properties
-
apps
→ List<
FirebaseAppPlatform> -
Returns all initialized FirebaseApp instances.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
app(
[String name = defaultFirebaseAppName]) → FirebaseAppPlatform -
Returns a Firebase app with the given
name. -
initializeApp(
{String? name, FirebaseOptions? options}) → Future< FirebaseAppPlatform> -
Initializes a new FirebaseApp with the given
nameand FirebaseOptions. -
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 ↔ FirebasePlatform
-
The default instance of FirebasePlatform to use.
getter/setter pair