NetworkPicture constructor

NetworkPicture(
  1. PictureInfoDecoderBuilder<Uint8List> decoderBuilder,
  2. String url, {
  3. Map<String, String>? headers,
  4. 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);