providerImage function
Implementation
ImageProvider providerImage(String image) {
return image.contains('assets/')
? AssetImage(image)
: image.contains('https://')
? NetworkImage(image)
: FileImage(File(image)) as ImageProvider;
}