LazyCounter class abstract
Lazy Counter, with a cached value stored locally, and a call to the server.
- Implementers
Constructors
- LazyCounter()
-
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
-
getLocalCount(
UserPreferences userPreferences) → int? - Returns the value cached locally;
-
getServerCount(
) → Future< int?> - Gets the latest value from the server.
-
getSuffixTag(
) → String - Returns the suffix tag used to cache the value locally;
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setLocalCount(
int value, UserPreferences userPreferences, {required bool notify}) → Future< void> - Sets the value cached locally;
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited