FirebaseDatabaseWeb class

Web implementation for DatabasePlatform delegates calls to firebase web plugin

Inheritance
  • Object
  • PlatformInterface
  • FirebaseDatabaseWeb

Constructors

FirebaseDatabaseWeb({FirebaseApp? app, String? databaseURL})
Builds an instance of DatabaseWeb with an optional FirebaseApp instance If app is null then the created instance will use the default FirebaseApp

Properties

app → FirebaseApp?
The FirebaseApp instance to which this FirebaseDatabase belongs.
finalinherited
databaseURL String?
The URL to which this FirebaseDatabase belongs
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delegateFor({required FirebaseApp app, String? databaseURL}) → DatabasePlatform
Enables delegates to create new instances of themselves if a none default FirebaseApp instance is required by the user.
getChannelArguments([Map<String, Object?>? other]) Map<String, Object?>
Returns any arguments to be provided to a MethodChannel.
inherited
goOffline() Future<void>
Shuts down our connection to the Firebase Database backend until goOnline is called.
goOnline() Future<void>
Resumes our connection to the Firebase Database backend after a previous goOffline call.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
purgeOutstandingWrites() Future<void>
The Firebase Database client automatically queues writes and sends them to the server at the earliest opportunity, depending on network connectivity. In some cases (e.g. offline usage) there may be a large number of writes waiting to be sent. Calling this method will purge all outstanding writes so they are abandoned.
ref([String? path]) → DatabaseReferencePlatform
Gets a DatabaseReference for the root of your Firebase Database.
setLoggingEnabled(bool enabled) → void
Enables verbose diagnostic logging for debugging your application. This must be called before any other usage of FirebaseDatabase instance. By default, diagnostic logging is disabled.
setPersistenceCacheSizeBytes(int cacheSize) → void
Attempts to set the size of the persistence cache.
setPersistenceEnabled(bool enabled) → void
This is not supported on web. However, If a client loses its network connection, your app will continue functioning correctly.
toString() String
A string representation of this object.
inherited
useDatabaseEmulator(String host, int port) → void
Changes this instance to point to a FirebaseDatabase emulator running locally.

Operators

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

Static Methods

registerWith(Registrar registrar) → void
Called by PluginRegistry to register this plugin for Flutter Web