CacheConfig<T> class
The configuration for a Cache instance.
Constructors
- CacheConfig({int? maxSize, bool shouldCache(T item)?})
-
Create a new CacheConfig with the provided properties.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxSize → int?
-
The maximum amount of items allowed in the cache.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldCache → (bool Function(T item)?)
-
A predicate determining whether a given item should be cached.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited