IconCacheService class
A service class responsible for handling the logic of caching and retrieving icons.
This class interacts with the ObjectBox store to persist and fetch icon data.
Constructors
-
IconCacheService.new(Store store, {Future<
Uint8List> svgConverter(String, double, [Size? size])?}) - Creates an instance of IconCacheService.
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
-
getOrBuildAndCacheIcon(
{required String key, required String assetName, required double devicePixelRatio, Size? size = const Size(20, 20)}) → Future< Uint8List> - Gets an icon from the cache or builds and caches it if it doesn't exist.
-
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