SymbolCacheMgr class
Central manager for symbol caching operations.
This singleton class provides a unified interface for symbol caching across the rendering system. It manages the lifecycle of cached symbols and handles loading, scaling, and retrieval of bitmap symbols used in map rendering.
Key features:
- Singleton pattern for global cache management
- Automatic symbol loading and scaling
- File-based caching implementation
- Thread-safe symbol retrieval
Constructors
- SymbolCacheMgr()
-
Factory constructor returning the singleton instance.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- symbolCache ↔ SymbolCache
-
Underlying symbol cache implementation.
getter/setter pair
Methods
-
addLoader(
String prefix, ImageLoader loader) → void -
dispose(
) → void - Disposes all cached symbols. This can be called after usage of mapfiles to free memory.
-
getOrCreateSymbol(
String src, int width, int height) → Future< SymbolImage?> - Loads and returns the desired symbol with optional scaling.
-
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