network static method

TileResourceProvider network(
  1. String url, {
  2. Map<String, String>? headers,
})

Creating a tile resource from a network resource.

This will throw if the url doesn't contain a valid image in its response.

Implementation

static TileResourceProvider network(String url, {Map<String, String>? headers}) => NetworkTileResourceProvider(url, headers: headers);