imageProviderBuilder property

(ImageProvider<Object> Function({required Conditional conditional, required Map<String, String>? imageHeaders, required String uri})?) imageProviderBuilder
final

This feature allows you to use a custom image provider. This is useful if you want to manage image loading yourself, or if you need to cache images. You can also use the cached_network_image feature, but when it comes to caching, you might want to decide on a per-message basis. Plus, by using this provider, you can choose whether or not to send specific headers based on the URL.

Implementation

final ImageProvider Function({
  required String uri,
  required Map<String, String>? imageHeaders,
  required Conditional conditional,
})? imageProviderBuilder;