FMTCImageProvider class

A specialised ImageProvider dedicated to 'flutter_map_tile_caching'

Inheritance

Constructors

FMTCImageProvider({required FMTCTileProvider provider, required TileLayerOptions options, required Coords<num> coords, required HttpClient httpClient, required Map<String, String> headers})
Create a specialised ImageProvider dedicated to 'flutter_map_tile_caching'

Properties

coords → Coords<num>
The coordinates of the tile to be fetched
final
hashCode int
The hash code for this object.
no setteroverride
headers Map<String, String>
Custom headers to send with each request
final
httpClient HttpClient
A HTTP client used to send requests
final
options → TileLayerOptions
An instance of the TileLayerOptions in use
final
provider FMTCTileProvider
An instance of the FMTCTileProvider in use
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings FMTCTileProviderSettings
Shorthand for provider.settings
latefinal

Methods

createStream(ImageConfiguration configuration) ImageStream
Called by resolve to create the ImageStream it returns.
inherited
evict({ImageCache? cache, ImageConfiguration configuration = ImageConfiguration.empty}) Future<bool>
Evicts an entry from the image cache.
inherited
load(FMTCImageProvider key, dynamic decode) ImageStreamCompleter
loadBuffer(FMTCImageProvider key, DecoderBufferCallback decode) ImageStreamCompleter
Converts a key into an ImageStreamCompleter, and begins fetching the image.
inherited
loadImage(FMTCImageProvider key, ImageDecoderCallback decode) ImageStreamCompleter
Converts a key into an ImageStreamCompleter, and begins fetching the image.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
obtainCacheStatus({required ImageConfiguration configuration, ImageErrorListener? handleError}) Future<ImageCacheStatus?>
Returns the cache location for the key that this ImageProvider creates.
inherited
obtainKey(ImageConfiguration configuration) Future<FMTCImageProvider>
Converts an ImageProvider's settings plus an ImageConfiguration to a key that describes the precise image to load.
override
resolve(ImageConfiguration configuration) ImageStream
Resolves this image provider using the given configuration, returning an ImageStream.
inherited
resolveStreamForKey(ImageConfiguration configuration, ImageStream stream, FMTCImageProvider key, ImageErrorListener handleError) → void
Called by resolve with the key returned by obtainKey.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Properties

cacheHitsQueue → Queue
Used internally to safely and efficiently update the cache hits statistic
final
cacheMissesQueue → Queue
Used internally to safely and efficiently update the cache misses statistic
final
removeOldestQueue → Queue
Used internally to safely and efficiently enforce the settings.maxStoreLength
final