DioImage constructor
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;