isImage static method
Whether name looks like an image file.
Implementation
static bool isImage(String name) => hasExtension(name, const <String>[
'png',
'jpg',
'jpeg',
'gif',
'webp',
'bmp',
'svg',
'heic',
'heif'
]);