FMTCTileProviderSettings class

Settings for an FMTCTileProvider

Constructors

FMTCTileProviderSettings({CacheBehavior behavior = CacheBehavior.cacheFirst, Duration cachedValidDuration = const Duration(days: 16), int maxStoreLength = 0, List<String> obscuredQueryParams = const [], void errorHandler(FMTCBrowsingError exception)?})
Create settings for an FMTCTileProvider

Properties

behavior CacheBehavior
The behavior method to get and cache a tile
final
cachedValidDuration Duration
The duration until a tile expires and needs to be fetched again when browsing. Also called validDuration.
final
errorHandler ↔ (void Function(FMTCBrowsingError exception)?)
A custom callback that will be called when an FMTCBrowsingError is raised
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
maxStoreLength int
The maximum number of tiles allowed in a cache store (only whilst 'browsing' - see below) before the oldest tile gets deleted. Also called maxTiles.
final
obscuredQueryParams Iterable<RegExp>
A list of regular expressions indicating key-value pairs to be remove from a URL's query parameter list
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
obscureQueryParams(String url) String
Apply the obscuredQueryParams to the input url
toString() String
A string representation of this object.
inherited

Operators

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