FirebaseCoreWeb class
The entry point for accessing Firebase.
You can get an instance by calling FirebaseCore.instance
.
- Inheritance
-
- Object
- PlatformInterface
- FirebasePlatform
- FirebaseCoreWeb
Constructors
Properties
-
apps
→ List<
FirebaseAppPlatform> -
Returns all created
FirebaseAppPlatform
instances.no setteroverride - firebaseSDKVersion → String
-
Returns the Firebase JS SDK Version to use.
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
FirebaseAppPlatform
instance.override -
initializeApp(
{String? name, FirebaseOptions? options}) → Future< FirebaseAppPlatform> -
Initializes a new
FirebaseAppPlatform
instance byname
andoptions
and returns the created app. This method should be called before any usage of FlutterFire plugins.override -
injectSrcScript(
String src, String windowVar) → Future< void> -
Injects a
script
with asrc
dynamically into the head of the current document. -
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 Methods
-
registerService(
String service, {String? productNameOverride, EnsurePluginInitialized? ensurePluginInitialized}) → void - Internally registers a Firebase Service to be initialized.
-
registerWith(
Registrar registrar) → void - Registers that FirebaseCoreWeb is the platform implementation.