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
anonymousIdfrom the cache. -
getUserId(
) → Future< String?> -
Returns the
userIdfrom the cache. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setUserId(
String? userId) → Future< void> -
Sets the
userIdin the cache. If theuserIdisnull, 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