FlutterMapTileCaching class

Main singleton access point for 'flutter_map_tile_caching'

You must construct using FlutterMapTileCaching.initialise before using FlutterMapTileCaching.instance, otherwise a StateError will be thrown. Note that the singleton can be re-initialised/changed by calling the aforementioned constructor again.

FMTC is an alias for this object.

Constructors

FlutterMapTileCaching.initialise(RootDirectory rootDir, {FMTCSettings? settings})
Initialise the main singleton access point for 'flutter_map_tile_caching'

Properties

hashCode int
The hash code for this object.
no setterinherited
rootDirectory RootDirectory
The cache's root
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings FMTCSettings
Custom global 'flutter_map_tile_caching' settings
final

Methods

call(String storeName) StoreDirectory
Get a StoreDirectory by store name
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
operator [](String storeName) StoreDirectory
Get a StoreDirectory by store name

Static Properties

instance FlutterMapTileCaching
Get the configured instance of FlutterMapTileCaching, after FlutterMapTileCaching.initialise has been called, for further actions
no setter