DioImageProvider constructor
Creates a new DioImageProvider with the given imageUrl
and fallbackAssetPath
.
Both imageUrl
and fallbackAssetPath
are required and must not be null.
Example:
DioImage(
imageUrl: Uri.parse("https://example.com/image.png"),
fallbackAssetPath: "assets/images/fallback.png",
)
Implementation
DioImageProvider({
required this.imageUrl,
required this.fallbackAssetPath,
}) {
dio.interceptors.add(cookieStorageService.getCookieManager());
}