LoadImageOption class

A data class for loadLocalOrNetworkImageBytes and loadLocalOrNetworkImageCodec, which is used to describe some options, and has almost the same fields as LocalOrCachedNetworkImageProvider.

Constructors

LoadImageOption({File? file, String? url, double? scale = 1.0, bool fileMustExist = true, Map<String, String>? headers, BaseCacheManager? cacheManager, String? cacheKey, int? maxWidth, int? maxHeight, bool asyncHeadFirst = false, Duration? networkTimeout, void onFileLoading()?, void onUrlLoading()?, void onFileLoaded(Object? err)?, void onUrlLoaded(Object? err)?})
const
LoadImageOption.fromFutures({Future<File?>? fileFuture, Future<String?>? urlFuture, double? scale = 1.0, bool fileMustExist = true, Map<String, String>? headers, BaseCacheManager? cacheManager, String? cacheKey, int? maxWidth, int? maxHeight, bool asyncHeadFirst = false, Duration? networkTimeout, void onFileLoading()?, void onUrlLoading()?, void onFileLoaded(Object? err)?, void onUrlLoaded(Object? err)?})
const

Properties

asyncHeadFirst bool
final
cacheKey String?
final
cacheManager → BaseCacheManager?
final
file File?
final
fileFuture Future<File?>?
final
fileMustExist bool
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
final
maxHeight int?
final
maxWidth int?
final
networkTimeout Duration?
final
onFileLoaded → (void Function(Object? err)?)
final
onFileLoading → (void Function()?)
final
onUrlLoaded → (void Function(Object? err)?)
final
onUrlLoading → (void Function()?)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double?
final
url String?
final
urlFuture Future<String?>?
final
useFuture bool
final

Methods

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

Operators

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