NetworkPicture constructor
NetworkPicture(
- PictureInfoDecoderBuilder<
Uint8List> decoderBuilder, - String url, {
- Map<
String, String> ? headers, - ColorFilter? colorFilter,
Creates an object that fetches the picture at the given URL.
The arguments must not be null.
Implementation
NetworkPicture(this.decoderBuilder, this.url,
{this.headers, ColorFilter? colorFilter})
: assert(url != null), // ignore: unnecessary_null_comparison
decoder = decoderBuilder(null),
super(colorFilter);