CatalogCachePolicy class
Decides whether the persistent catalogue cache is safe for this session.
Hive boxes are shared by every session running on the same browser origin. Anonymous sessions must therefore not restore a previous account's catalogue. Firebase demo projects are also treated as isolated backends so a local emulator run cannot consume or overwrite a production catalogue.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
forCurrentSession(
{required bool hasAuthenticatedSession}) → bool -
isFirebaseDemoProject(
String? projectId) → bool -
shouldBypassPersistentCache(
{required bool hasAuthenticatedSession, String? firebaseProjectId}) → bool
Constants
- firebaseDemoProjectPrefix → const String