ResponsiveCache class
High-performance caching layer for responsive calculations Automatically clears cache when device orientation or size changes
Constructors
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 Methods
-
clear(
) → void - Clear all cached values
-
contains(
String key) → bool - Check if cache contains a key
-
getOrCompute<
T> (String key, T compute(), {required double width, required double height, required String orientation}) → T - Get cached value or compute and cache it
-
getStats(
) → Map< String, dynamic> - Get cache statistics for debugging
-
remove(
String key) → void - Remove specific key from cache