ImageProvider.fromImageProvider constructor

ImageProvider.fromImageProvider(
  1. ImageProvider<Object> provider, {
  2. bool cacheable = true,
  3. String? id,
  4. Function? onError,
})

Implementation

ImageProvider.fromImageProvider(painting.ImageProvider provider,
    {bool cacheable = true, String? id, Function? onError})
    : this(() => _imageFromImageProvider(provider),
          id: id, cacheable: cacheable, onError: onError);