LocalOrCachedNetworkImageProvider.fromNetwork constructor
const
LocalOrCachedNetworkImageProvider.fromNetwork({})
Creates LocalOrCachedNetworkImageProvider with non-null url only.
Implementation
const LocalOrCachedNetworkImageProvider.fromNetwork({
// general
this.key,
required String this.url,
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 = false,
file = null,
fileFuture = null,
urlFuture = null,
// local
fileMustExist = true,
// callback
onFileLoading = null,
onFileLoaded = null;