buildImageProvider static method

ImageProvider<Object>? buildImageProvider(
  1. dynamic value
)

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;
}