FMTCTileProviderSettings class Null safety
Settings for an FMTCTileProvider
Constructors
- FMTCTileProviderSettings({CacheBehavior behavior = CacheBehavior.cacheFirst, Duration cachedValidDuration = const Duration(days: 16), int maxStoreLength = 0, 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 raisedread / write - hashCode → int
-
The hash code for this object.
read-onlyoverride
- 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 - runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
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.
override