SpritefusionNetworkReader constructor

SpritefusionNetworkReader({
  1. required Uri uri,
  2. TiledCacheProvider? cacheProvider,
  3. 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, '');
}