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
pathis a network URL (http://orhttps://) 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
providerto its first frame. -
loadSegmentImage(
WheelSegment segment, {ImageConfiguration configuration = ImageConfiguration.empty}) → Future< Image> -
Loads the icon of a single
segment. -
loadSegmentImages<
T> (List< WheelSegment< segments, {ImageConfiguration configuration = ImageConfiguration.empty}) → Future<T> >List< WheelSegment< >T> > - Loads icons for every WheelSegment that still needs one (see WheelSegment.needsImageLoad). Images are loaded in parallel.