FileInfoEntity class

Base object to hold Uploadcare file data

Constructors

FileInfoEntity({required bool isStored, required String id, required String filename, required String mimeType, required bool isReady, required int size, DateTime? datetimeUploaded, DateTime? datetimeStored, DateTime? datetimeRemoved, Map<String, dynamic>? imageInfo, Map<String, double>? recognitionInfo})
const
FileInfoEntity.fromJson(Map<String, dynamic> json)
factory

Properties

datetimeRemoved DateTime?
Date and time when a file was removed, if any.
final
datetimeStored DateTime?
Date and time of the last store request, if any.
final
datetimeUploaded DateTime?
Date and time when a file was uploaded.
final
filename String
Original name of an uploaded file.
final
hashCode int
The hash code for this object.
no setterinherited
id String
File UUID.
final
imageInfo Map<String, dynamic>?
Image meta (if a file is an image): Width and height Orientation Geolocation, from EXIF Original datetime, from EXIF Format Resolution, DPI
final
isImage bool
if your file is an image and can be processed via Image Processing, Please note, our processing engine does not treat all image files as such. Some of those may not be supported due to file sizes, resolutions or formats. In the case, the flag is set to false. false otherwise.
no setter
isReady bool
If a file is ready and not deleted, it is available on CDN.
final
isStored bool
final
mimeType String
File MIME type.
final
recognitionInfo Map<String, double>?
Object Recognition allows categorizing and tagging images. When using Uploadcare Object Recognition, you get a list of objects detected in your image paired with confidence levels for every object class.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
File size in bytes.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
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