ExactAssetImage(String name, { double scale: 1.0, AssetBundle bundle })

Creates an object that fetches the given image from an asset bundle.

The name and scale arguments must not be null. The scale arguments defaults to 1.0. The bundle argument may be null, in which case the bundle provided in the ImageConfiguration passed to the resolve call will be used instead.

Source

ExactAssetImage(this.name, {
  this.scale: 1.0,
  this.bundle
}) {
  assert(name != null);
  assert(scale != null);
}