ImageLoader class

Utitlity to load image (gif, png, jpg, etc) media just once. Resource is cached to disk with default configurations of DefaultCacheManager.

Constructors

ImageLoader(String url, {Map<String, dynamic>? requestHeaders})

Properties

frames Codec?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
requestHeaders Map<String, dynamic>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state LoadState
getter/setter pair
url String
getter/setter pair

Methods

loadImage(VoidCallback onComplete) → void
Load image from disk cache first, if not found then load from network. onComplete is called when imageBytes become available.
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