FMTCTileProvider class Null safety

'flutter_map_tile_caching's custom TileProvider for use in a TileLayer

Inheritance

Constructors

FMTCTileProvider({required StoreDirectory storeDirectory, required FMTCTileProviderSettings? settings, Map<String, String> headers = const {}, HttpClient? httpClient})
'flutter_map_tile_caching's custom TileProvider for use in a TileLayer

Properties

hashCode int
The hash code for this object.
read-onlyinherited
headers Map<String, String>
Custom headers that may be sent with each tile request, if the specific implementation supports it
read / writeinherited
httpClient HttpClient
Used internally for browsing-caused tile requests
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
settings FMTCTileProviderSettings
The tile provider settings to use
final
storeDirectory StoreDirectory
The store directory attached to this provider
final

Methods

checkTileCached({required Coords<num> coords, required TileLayer options}) bool
Check whether a specified tile is cached in the current store synchronously
checkTileCachedAsync({required Coords<num> coords, required TileLayer options}) Future<bool>
Check whether a specified tile is cached in the current store asynchronously
dispose() → void
Closes the open HttpClient - this will make the provider unable to perform network requests
override
getImage(Coords<num> coords, TileLayer options) → ImageProvider<Object>
Get a browsed tile as an image, paint it on the map and save it's bytes to cache for later (dependent on the CacheBehavior)
override
getSubdomain(Coords<num> coords, TileLayer options) String
Get a subdomain value for a tile, based on it's coordinates and the current TileLayerOptions
inherited
getTileFallbackUrl(Coords<num> coords, TileLayer options) String?
Generates a valid URL for the fallbackUrl.
inherited
getTileUrl(Coords<num> coords, TileLayer options) String
Generate a valid URL for a tile, based on it's coordinates and the current TileLayerOptions
inherited
invertY(int y, int z) int
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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