ImageType enum

defines the types of supported image source.

Inheritance
Available extensions

Values

cached → const ImageType

Network image source with memory cache.

NOTE: default ImageProviderFactory implementation CachedNetworkImage. will be called when url startsWith '//' ,'http://','https://'. param will be bool, the value is true.

network → const ImageType

Network image source.

NOTE: default ImageProviderFactory implementation NetworkImage will be called when url startsWith '//' ,'http://','https://' param will be bool, the value is false.

file → const ImageType

File path image source

NOTE: default ImageProviderFactory implementation FileImage will be called when url startsWith 'file://' param will be type File

dataUrl → const ImageType

Raw image data source

NOTE: default ImageProviderFactory implementation MemoryImage will be called when url startsWith 'data://' param will be Uint8List, value is the content part of the data URI as bytes, which is converted by UriData.contentAsBytes.

blob → const ImageType

Blob image source which created by URL.createObjectURL()

NOTE: default ImageProviderFactory implementation is defaultBlobProviderFactory blobPath @TODO

assets → const ImageType

Assets image source.

NOTE: default ImageProviderFactory implementation is defaultAssetsProvider Current, this type only has asset image source, assets should treat as asset image.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<ImageType>
A constant List of the values in this enum, in order of their declaration.