FetchInstructions class

Instructions NetworkImageWithRetry uses to fetch the image.

Annotations

Constructors

FetchInstructions.attempt({required Uri uri, required Duration timeout})
Instructs NetworkImageWithRetry to attempt to download the image from the given uri and timeout if it takes too long.
const
FetchInstructions.giveUp({required Uri uri, Future<ImageInfo>? alternativeImage})
Instructs NetworkImageWithRetry to give up trying to download the image.
const

Properties

alternativeImage Future<ImageInfo>?
Instructs to give up and use this image instead.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldGiveUp bool
Instructs to give up trying.
final
timeout Duration
Timeout for the next network call.
final
uri Uri
The URI to use on the next attempt.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited