getImage

suspend fun getImage(mealName: String, imageSize: ImageSize = ImageSize.SMALL): Bitmap?

a function to fetch the image form the API

Return

the image bitmap or null if it was unsuccessful

Parameters

mealName

the name of the meal that is stored in the api

imageSize

how large you want the image. Good for lowering bandwithd