LruCache<K, V> class

LRU策略的缓存map

Constructors

LruCache({int capacity = 20})

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
no setter
isNotEmpty bool
no setter
keys Iterable<K>
no setter
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Iterable<V>
no setter

Methods

clear() → dynamic
containsKey(Object? key) bool
containsValue(Object? value) bool
get(K key) → V?
getAll() Map<K, V>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(K key, V value) → dynamic
remove(K key) → V?
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](K? key) → dynamic
operator []=(dynamic key, dynamic value) → void