TiledNetworkReader constructor
TiledNetworkReader({
- required Uri uri,
- TiledCacheProvider? cacheProvider,
- Map<
String, String> ? headers,
Implementation
TiledNetworkReader({
required this.uri,
TiledCacheProvider? cacheProvider,
this.headers,
}) : cache = cacheProvider ?? TiledMemoryCacheProvider() {
_imageLoader = ServerImageLoader(cache: cache);
String url = uri.toString();
basePath = url.replaceAll(url.split('/').last, '');
}