FireproofCloset class

FireproofCloset - Singleton Implementation Constructs a single _instance Factory constructor always returns the same instance Instance parameters can only be set if they are null, and will use default values from the Factory constructor

Constructors

FireproofCloset()

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

cacheStatus() → void
Get the cache status
clearCache() → void
Clear the cache
downloadAndCache(Reference storageRef, {BuildContext? context, Duration cacheDuration = kDefaultDuration, bool breakCache = false}) Future<void>
Download And Cache Downloads the byte data from Firebase Storage and caches it locally for future use.
initialize() Future<void>
Initialize the cache by opening the database with our data schemes (generated from @collection classes)
printCacheItems() → void
Print everything in the cache