FirebaseDatabase class
The root database that manages access to the firebase realtime database.
This class manages the account and api, which are used by all substores created from this database. While the database itself does not provide much functionality, it serves as an entry point to access the server database and to create FirebaseStores from.
Constructors
- FirebaseDatabase({required FirebaseAccount account, required String database, String basePath = '', Timeout? timeout, WriteSizeLimit? writeSizeLimit, Client? client})
- Constructs a database for an authenticated user.
- FirebaseDatabase.api(RestApi api, {FirebaseAccount? account})
- Constructs a rawdatabase from the raw api
- FirebaseDatabase.unauthenticated({required Client client, required String database, String basePath = '', Timeout? timeout, WriteSizeLimit? writeSizeLimit})
- Constructs a database without a user
Properties
- account → FirebaseAccount?
-
An optional account used by the database.
final
- api → RestApi
-
The api beeing used to communicate with the firebase servers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- rootStore → FirebaseStore
-
An untyped root store, representing the virtual root used by the database.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createRootStore<
T> ({required DataFromJsonCallback< T> onDataFromJson, required DataToJsonCallback<T> onDataToJson, required PatchDataCallback<T> onPatchData}) → FirebaseStore<T> - Creates a typed variant of the rootStore.
-
dispose(
) → Future< void> - Disposes of the database.
-
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