getImageAsset function

String getImageAsset(
  1. String imageName, {
  2. String? path = '/images',
})

Returns the full image path for a image in /assets/images/ directory. Provide the name of the image, using imageName parameter.

Returns a String.

Implementation

String getImageAsset(String imageName, {String? path = '/images'}) =>
    getAsset("$path/$imageName");