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(PictureInfoDecoderBuilder<Uint8List> decoderBuilder, this.url,
{this.headers, ColorFilter? colorFilter})
: assert(url != null), // ignore: unnecessary_null_comparison
super(colorFilter, decoderBuilder: decoderBuilder);