SkeletonCache class

Cache for generated skeleton widgets.

Improves performance by caching skeleton widgets based on type and size.

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

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

Static Properties

enabled bool
Checks if caching is enabled.
getter/setter pair
maxCacheSize int
Gets the maximum cache size.
getter/setter pair
size int
Returns the current cache size.
no setter
statistics Map<String, dynamic>
Gets cache statistics.
no setter

Static Methods

clear() → void
Clears the cache.
get(SkeletonCacheKey key) Widget?
Gets a cached skeleton widget.
put(SkeletonCacheKey key, Widget widget) → void
Caches a skeleton widget.