buildImageProvider static method
Implementation
static ImageProvider? buildImageProvider(dynamic value) {
if (value is File) {
return ExtendedFileImageProvider(value);
} else if (value is String && value.startsWith('http')) {
return ExtendedNetworkImageProvider(value);
} else if (value is Uint8List) {
return ExtendedMemoryImageProvider(value);
}
return null;
}