IconCacheService constructor
IconCacheService(})
Creates an instance of IconCacheService.
Requires an ObjectBox Store to interact with the database.
Optionally, a custom svgConverter
function can be provided.
Implementation
IconCacheService(
Store store, {
Future<Uint8List> Function(String, double, [Size? size])? svgConverter,
}) : _cachedIconBox = store.box<CachedIcon>(),
_svgConverter = svgConverter ?? getBitmapDescriptorFromSvgAsset;