CloudflareImage class

Available Extensions
Annotations
  • @CopyWith(skipFields: true)
  • @JsonSerializable(includeIfNull: false)

Constructors

CloudflareImage({String? id, String? imageDeliveryId, String? filename, Map? meta, bool? requireSignedURLs, List<String>? variants, DateTime? uploaded, bool? draft})
CloudflareImage.fromJson(Map<String, dynamic> json)
factory

Properties

draft bool
Whether this is a pending direct upload image or not
final
filename String?
Image file name
final
firstVariant String
no setter
hashCode int
The hash code for this object.
no setteroverride
id String
Image unique identifier
final
imageDeliveryId String?
Image unique identifier for cloudflare account image delivery, for instance this is the structure of an image delivery url:
final
isReady bool
no setter
meta Map?
User modifiable key-value store. Can be used for keeping references to another system of record for managing images. Metadata must not exceed 1024 bytes
getter/setter pair
requireSignedURLs bool
Indicates whether the image can be a accessed only using it's UID. If set to true, a signed token needs to be generated with a signing key to view the image.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uploaded DateTime
When the media item was uploaded. Using ISO 8601 ZonedDateTime
final
variants List<String>
List specifying available variants for an image.
final

Methods

fromJsonList(List? jsonList) List<CloudflareImage>?
inherited
fromJsonMap(Map<String, dynamic>? json) CloudflareImage?
fromJsonString(String? json) CloudflareImage?
inherited
fromJsonStringList(String? jsonStringList) List<CloudflareImage>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJsonMap() Map<String, dynamic>
inherited
toJsonString() String
inherited
toString() String
This is just to suggest children to implement a named constructor to support creating objects fromJson(...) and fromJsonString(...) as easy as T.build().fromJson(...) or T.build().fromJsonString(...)
inherited

Operators

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

Static Methods

dataFromImageDeliveryUrl(String url) Map<String, dynamic>
fromUrl(String url) CloudflareImage?
Builds a CloudflareImage from an url if url is properly created
variantNameFromUrl(String url) String

Constants

imageDeliveryUrl → const String
uploadImageDeliveryUrl → const String