getImageAsset function Null safety

String getImageAsset(
  1. String imageName
)

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

Returns a String.

Implementation

String getImageAsset(String imageName) {
  return "${getEnv("ASSET_PATH_IMAGES")}/$imageName";
}