ImageAPI class
Properties
- dataType ↔ CloudflareImage?
-
getter/setter pairinherited
- errorType ↔ CloudflareErrorResponse?
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- restAPI ↔ RestAPI
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- service ↔ ImageService
-
getter/setter pairinherited
Methods
-
delete(
{String? id, CloudflareImage? image}) → Future< CloudflareHTTPResponse> - Delete an image on Cloudflare Images. On success, all copies of the image are deleted and purged from Cache.
-
deleteMultiple(
{List< String> ? ids, List<CloudflareImage> ? images}) → Future<List< CloudflareHTTPResponse> > - Delete a list of images on Cloudflare Images. On success, all copies of the images are deleted and purged from Cache.
-
genericParseResponse<
DataTypeGeneric> (Future futureResponse, {DataTypeGeneric? dataType, bool parseCloudflareResponse = true}) → Future< CloudflareHTTPResponse< DataTypeGeneric> > -
inherited
-
genericParseResponseAsList<
DataTypeGeneric extends Jsonable< (Object> ?>Future futureResponse, {DataTypeGeneric? dataType, bool parseCloudflareResponse = true}) → Future< CloudflareHTTPResponse< List< >DataTypeGeneric> > -
inherited
-
get(
{String? id, CloudflareImage? image}) → Future< CloudflareHTTPResponse< CloudflareImage?> > - Fetch details of a single image.
-
getAll(
{int? page, int? size}) → Future< CloudflareHTTPResponse< List< >CloudflareImage> ?> - Up to 100 images can be listed with one request, use optional parameters to get a specific range of images.
-
getBase(
{String? id, CloudflareImage? image}) → Future< CloudflareHTTPResponse< List< >int> ?> - Fetch base image. For most images this will be the originally uploaded file. For larger images it can be a near-lossless version of the original. Note: the response is
-
getSaveResponse<
ContainerDataTypeGeneric> (Future futureResponse, {bool parseCloudflareResponse = true}) → Future< CloudflareHTTPResponse> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseResponse(
Future futureResponse, {bool parseCloudflareResponse = true}) → Future< CloudflareHTTPResponse< CloudflareImage> > -
inherited
-
parseResponseAsList(
Future futureResponse, {bool parseCloudflareResponse = true}) → Future< CloudflareHTTPResponse< List< >CloudflareImage> > -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
{String? id, CloudflareImage? image, bool? requireSignedURLs, Map< String, dynamic> ? metadata}) → Future<CloudflareHTTPResponse< CloudflareImage?> > - Update image access control. On access control change, all copies of the image are purged from Cache.
-
upload(
{DataTransmit< File> ? contentFromFile, DataTransmit<String> ? contentFromPath, DataTransmit<List< ? contentFromBytes, bool? requireSignedURLs, Map<int> >String, dynamic> ? metadata}) → Future<CloudflareHTTPResponse< CloudflareImage?> > - An image up to 10 Megabytes can be upload.
-
uploadMultiple(
{List< DataTransmit< ? contentFromFiles, List<File> >DataTransmit< ? contentFromPaths, List<String> >DataTransmit< ? contentFromBytes, bool? requireSignedURLs, Map<List< >int> >String, dynamic> ? metadata}) → Future<List< CloudflareHTTPResponse< >CloudflareImage?> > - Uploads multiple images by repeatedly calling upload
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited