loadImage function
Future<Image>
loadImage(
- String path, {
- ImageConfiguration configuration = ImageConfiguration.empty,
Loads an image from either a local asset path or a network URL.
The caller owns the returned image and must dispose it when done.
Implementation
Future<ui.Image> loadImage(
String path, {
ImageConfiguration configuration = ImageConfiguration.empty,
}) {
return loadImageFromProvider(_providerForPath(path),
configuration: configuration);
}