DatabasePersistence class final

Persistence for one database instance: an opener of a storage engine plus the cache size. Build it with sqlitePersistence (package firebase_database_dart_sqlite) or, for your own engine, databasePersistence of package:firebase_database_dart/storage_engine.dart, and pass it as FirebaseDatabase(persistence: ...).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openedAfter(Future<void> previous, {Duration timeout = const Duration(seconds: 5)}) → DatabasePersistence
This persistence, with its store opened only once previous completes, or after timeout (5 s) when it does not; an error of previous does not stop the open either. The cache size and what is cached are those of this persistence.
toString() → String
A string representation of this object.
inherited

Operators

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