CacheImageUtil class

图片缓存

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

cacheImageFile(String imageUrl) Future<File?>
前提:你使用了cached_network_image来加载图片,根据图片url返回其缓存的File对象
preloadImage(String url) → void
saveCacheImage2Album(String imageUrl, {String? fileName}) Future<SaveResult?>
前提:你使用了cached_network_image来加载图片,将图片url保存到相册,返回路径