FetchInstructions.attempt constructor

const FetchInstructions.attempt({
  1. required Uri uri,
  2. required Duration timeout,
})

Instructs NetworkImageWithRetry to attempt to download the image from the given uri and timeout if it takes too long.

Implementation

const FetchInstructions.attempt({
  required this.uri,
  required this.timeout,
})  : shouldGiveUp = false,
      alternativeImage = null;