FMTCTileProviderSettings constructor

FMTCTileProviderSettings({
  1. CacheBehavior behavior = CacheBehavior.cacheFirst,
  2. Duration cachedValidDuration = const Duration(days: 16),
  3. int maxStoreLength = 0,
  4. List<String> obscuredQueryParams = const [],
  5. void errorHandler(
    1. FMTCBrowsingError exception
    )?,
})

Create settings for an FMTCTileProvider

Implementation

FMTCTileProviderSettings({
  this.behavior = CacheBehavior.cacheFirst,
  this.cachedValidDuration = const Duration(days: 16),
  this.maxStoreLength = 0,
  List<String> obscuredQueryParams = const [],
  this.errorHandler,
}) : obscuredQueryParams = obscuredQueryParams.map((e) => RegExp('$e=[^&]*'));