CachedDataMap<T> class
Constructors
-
CachedDataMap({required ChannelType channelType, required String channelUrl, Map<
String, T> data = const {}, int? timestamp})
Properties
- dirty ↔ bool
-
getter/setter pairoverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
no setteroverride
- policy ↔ EvictionPolicy
-
getter/setter pairoverride
- primaryKey → String
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addMap(
Map< String, T> dataMap, int? ts) → void -
addWithKey(
String key, T value, int ts) → void -
copyWith(
dynamic others) → void -
override
-
evict(
) → void -
override
-
getAll(
) → Map< String, T> -
getWithKey(
String key) → T? -
getWithKeys(
List< String> keys) → Map<String, T?> -
merge(
CachedDataMap< T> others) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAll(
int ts) → void -
removeFromCache(
) → void -
removeWithKey(
String key, int? ts) → void -
removeWithKeys(
List< String> keys, int? ts) → void -
saveToCache(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited