LocalOrCachedNetworkImageProvider.fromNetworkWithFuture constructor
const
LocalOrCachedNetworkImageProvider.fromNetworkWithFuture({})
Creates LocalOrCachedNetworkImageProvider with non-null urlFuture only.
Implementation
const LocalOrCachedNetworkImageProvider.fromNetworkWithFuture({
// general
this.key,
required Future<String?> this.urlFuture,
this.scale = 1.0,
// network
this.headers,
this.cacheManager,
this.cacheKey,
this.maxWidth,
this.maxHeight,
this.asyncHeadFirst = false,
this.networkTimeout,
// callback
this.onUrlLoading,
this.onUrlLoaded,
}) : // general
_useFuture = true,
file = null,
url = null,
fileFuture = null,
// local
fileMustExist = true,
// callback
onFileLoading = null,
onFileLoaded = null;