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