core/image_loader library

Enums

ImageLoadState
The loading state of a segment's image.

Functions

imageProviderFor(WheelSegment segment) → ImageProvider<Object>?
The image provider for segment: its WheelSegment.imageProvider, or one created from its WheelSegment.path. Null if it has neither.
isNetworkPath(String path) → bool
Whether path is a network URL (http:// or https://) rather than an asset path.
loadImage(String path, {ImageConfiguration configuration = ImageConfiguration.empty}) → Future<Image>
Loads an image from either a local asset path or a network URL.
loadImageFromProvider(ImageProvider<Object> provider, {ImageConfiguration configuration = ImageConfiguration.empty}) → Future<Image>
Resolves provider to its first frame.
loadSegmentImage(WheelSegment segment, {ImageConfiguration configuration = ImageConfiguration.empty}) → Future<Image>
Loads the icon of a single segment.
loadSegmentImages<T>(List<WheelSegment<T>> segments, {ImageConfiguration configuration = ImageConfiguration.empty}) → Future<List<WheelSegment<T>>>
Loads icons for every WheelSegment that still needs one (see WheelSegment.needsImageLoad). Images are loaded in parallel.