FetchInstructions.giveUp constructor

const FetchInstructions.giveUp({
  1. required Uri uri,
  2. Future<ImageInfo>? alternativeImage,
})

Instructs NetworkImageWithRetry to give up trying to download the image.

Implementation

const FetchInstructions.giveUp({
  required this.uri,
  this.alternativeImage,
})  : shouldGiveUp = true,
      timeout = Duration.zero;