SvgNetworkLoader constructor

const SvgNetworkLoader(
  1. String url, {
  2. Map<String, String>? headers,
  3. SvgTheme? theme,
  4. ColorMapper? colorMapper,
  5. Client? httpClient,
})

Creates an instance of SvgNetworkLoader for loading SVGs from a network.

The url parameter is the Uri-encoded resource address of the SVG. Optional headers can be provided for the HTTP request. An optional httpClient can be supplied for custom HTTP operations.

Implementation

const SvgNetworkLoader(
  this.url, {
  this.headers,
  super.theme,
  super.colorMapper,
  http.Client? httpClient,
}) : _httpClient = httpClient;