loadImage function

Future<Image> loadImage(
  1. String path, {
  2. 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);
}