AppFitCache class

The cache for the AppFit SDK. This is used to store the user id and anonymous id for the AppFit dashboard.

Constructors

AppFitCache()
Initializes the AppFit cache.
const

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

clear() → void
Clears the cache.
getAnonymousId() Future<String?>
Returns the anonymousId from the cache.
getUserId() Future<String?>
Returns the userId from the cache.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setUserId(String? userId) Future<void>
Sets the userId in the cache. If the userId is null, it will be removed from the cache. This is used to identify the user in the AppFit dashboard.
toString() String
A string representation of this object.
inherited

Operators

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