DioImage constructor

DioImage(
  1. Uri url, {
  2. double scale = 1.0,
  3. Map<String, String>? headers,
  4. Dio? dio,
})

Creates an object that fetches the image at the given URL.

The arguments url and scale must not be null. dio will be the default Dio if not set.

Implementation

DioImage(this.url, {this.scale = 1.0, this.headers, Dio? dio})
    : dio = dio ?? defaultDio;