tolyui_image library

Classes

Abortable
An HTTP request that can be aborted before it completes.
AbortableMultipartRequest
A MultipartRequest which supports abortion using abortTrigger.
AbortableRequest
A Request which supports abortion using abortTrigger.
AbortableStreamedRequest
A StreamedRequest which supports abortion using abortTrigger.
BaseClient
The abstract base class for an HTTP client.
BaseRequest
The base class for HTTP requests.
BaseResponse
The base class for HTTP responses.
BaseResponseWithUrl
A BaseResponse with a url field.
ByteStream
A stream of chunks of bytes representing a single piece of data.
CancellationToken
CancellationTokenSource
Client
The interface for HTTP clients that take care of maintaining persistent connections across multiple requests to the same server.
ExtendedAssetBundleImageKey
ExtendedAssetImageProvider
File
A reference to a file on the file system.
FileImage
Decodes the given File object as an image, associating it with the given scale.
FxAssetImageProvider
FxFileImageProvider
FxImagePlugin
FxMemoryImageProvider
FxNetworkImageProvider
NetworkImage
FxPlugin<T>
FxResizeImage
Instructs Flutter to decode the image at the specified dimensions instead of at its native size.
HttpClientHelper
MediaType
A class representing an HTTP media type, as used in Accept and Content-Type headers.
MultipartFile
A file to be uploaded as part of a MultipartRequest.
MultipartRequest
A multipart/form-data request.
Request
An HTTP request where the entire request body is known in advance.
RetryHelper
StreamedRequest
An HTTP request where the request body is sent asynchronously after the connection has been established and the headers have been sent.
StreamedResponse
An HTTP response where the response body is received asynchronously after the headers have been received.
TolyImage
extended image base on official Image

Constants

cacheImageFolderName → const String

Properties

imageCaches ↔ Map<String, ImageCache>
The imageCaches to store custom ImageCache
getter/setter pair
rawImageDataMap ↔ Map<FxImageProvider, Uint8List>
The cached raw image data
getter/setter pair

Functions

clearMemoryImageCache([String? name]) → void
clear all of image in memory
delete(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) → Future<Response>
Sends an HTTP DELETE request with the given headers to the given URL.
get(Uri url, {Map<String, String>? headers}) → Future<Response>
Sends an HTTP GET request with the given headers to the given URL.
getMemoryImageCache([String? name]) → ImageCache?
get ImageCache
getNetworkImageData(String url, {bool useCache = true, StreamController<ImageChunkEvent>? chunkEvents}) → Future<Uint8List?>
get network image data from cached
Sends an HTTP HEAD request with the given headers to the given URL.
keyToMd5(String key) → String
get md5 from key
patch(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) → Future<Response>
Sends an HTTP PATCH request with the given headers and body to the given URL.
post(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) → Future<Response>
Sends an HTTP POST request with the given headers and body to the given URL.
put(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) → Future<Response>
Sends an HTTP PUT request with the given headers and body to the given URL.
read(Uri url, {Map<String, String>? headers}) → Future<String>
Sends an HTTP GET request with the given headers to the given URL and returns a Future that completes to the body of the response as a String.
readBytes(Uri url, {Map<String, String>? headers}) → Future<Uint8List>
Sends an HTTP GET request with the given headers to the given URL and returns a Future that completes to the body of the response as a list of bytes.
runWithClient<R>(R body(), Client clientFactory(), {ZoneSpecification? zoneSpecification}) → R
Runs body in its own Zone with the Client returned by clientFactory set as the default Client.

Exceptions / Errors

ClientException
An exception caused by an error in a pkg/http client.
OperationCanceledError
RequestAbortedException
Thrown when an HTTP request is aborted.