File class

Inheritance

Constructors

File(String? bucketUuid, String? directoryUuid, String fileUuid, Map<String, dynamic>? data)
Constructor which should only be called via StorageBucket class. @param bucketUuid Unique identifier of the file's bucket. @param directoryUuid Unique identifier of the file's directory. @param fileUuid Unique identifier of the file. @param data Data to populate the directory with.
File.fromJson(String? bucketUuid, String fileUuid, Map<String, dynamic> json)
factory

Properties

apiPrefix String?
API url prefix for this class.
getter/setter pairinherited
bucketUuid String?
Unique identifier of the file's bucket.
getter/setter pair
CID String?
File unique ipfs identifier.
getter/setter pair
CIDv1 String?
File content identifier V1.
getter/setter pair
createTime String?
The object's creation date
getter/setter pairinherited
directoryUuid String?
Unique identifier of the directory in which the file resides.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
Link on IPFS gateway.
getter/setter pair
name String?
File name.
getter/setter pair
path String?
Full path to file.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status FileStatus?
File upload status.
getter/setter pair
type StorageContentType?
Type of content.
getter/setter pair
updateTime String?
The date when the object was last updated
getter/setter pairinherited
uuid String
Unique identifier of the model.
getter/setter pairinherited

Methods

delete() Future<void>
Deletes a file from the bucket.
get() Future<File>
Gets file details. @returns File instance
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
populate(dynamic data) → dynamic
Populates class properties via data object. @param data Data object.
override
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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