ImageProvider constructor

ImageProvider(
  1. FutureOr<Image> _onImageRequest(), {
  2. bool cacheable = true,
  3. String? id,
  4. Function? onError,
})

Implementation

ImageProvider(this._onImageRequest,
    {this.cacheable = true, String? id, Function? onError})
    : _errorHandler = AsyncErrorHandler(onError),
      id = id ?? _generateId();