getAssetImage static method

ImageProvider<Object> getAssetImage(
  1. String name, {
  2. String format = 'png',
})

Implementation

static ImageProvider getAssetImage(String name, {String format = 'png'}) {
  return AssetImage(getImgPath(name, format: format));
}