FlutterMapTileCaching class Null safety

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.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
rootDirectory RootDirectory
The directory which contains all databases required to use FMTC
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
settings FMTCSettings
Custom global 'flutter_map_tile_caching' settings
final

Methods

call(String storeName) StoreDirectory
Get a StoreDirectory representation by store name, without creating it
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

Static Properties

instance FlutterMapTileCaching
Get the configured instance of FlutterMapTileCaching, after FlutterMapTileCaching.initialise has been called, for further actions
read-only

Static Methods

initialise({String? customRootDirectory, FMTCSettings? customSettings}) Future<FlutterMapTileCaching>
Initialise and prepare FMTC, by creating all neccessary directories/files and configuring the FlutterMapTileCaching singleton