DioImage.string constructor

DioImage.string(
  1. String 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.string(String url, {this.scale = 1.0, this.headers, Dio? dio})
    : dio = dio ?? defaultDio,
      url = Uri.parse(url);