FileSymbolCache class

A cache for symbols (small bitmaps used in the map, eg. stopsigns, arrows). The src parameter specifies the filename including the extension starting from the assets-path. eg. "patterns/arrow.png"

Inheritance
Implementers

Constructors

FileSymbolCache({ImageLoader? imageLoader = null, ImageBuilder imageBuilder = const ImageBuilder()})
Creates a new FileSymbolCache which loads symbols from file-sources and holds them in memory. By specifying the imageLoader one can define the source or method how to retrieve the binary data for a symbol.

Properties

hashCode int
The hash code for this object.
no setterinherited
imageBuilder ImageBuilder
final
imageLoader ImageLoader
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes the cache. It should not be used afterwards
override
getOrCreateSymbol(String? src, int width, int height) Future<ResourceBitmap?>
loads and returns the desired symbol, optionally rescales it to the given width and height
override
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