FileMetadata class

Inheritance

Constructors

FileMetadata({required List<int> content, required String fileName, String? path, String? contentType, String? fileUuid, String? CID, String? CIDv1, String? index, String? url})
FileMetadata.fromMap(Map<String, dynamic> map)
factory

Properties

CID ↔ String?
The file's CID on IPFS
getter/setter pairinherited
CIDv1 ↔ String?
getter/setter pairinherited
content ↔ List<int>
getter/setter pair
contentType ↔ String?
File MIME type
getter/setter pairinherited
fileName ↔ String
getter/setter pairinherited
fileUuid ↔ String?
The file's UUID, obtained after uploadig
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
index ↔ String?
getter/setter pair
path ↔ String?
Virtual file path. Empty for root. Must not contain fileName. The path field can be used to place file in virtual directories inside a bucket. If directories do not yet exist, they will be automatically generated. For example, an images/icons path creates images directory in a bucket and icons directory inside it. File will then be created in the icons directory.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url ↔ String?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
populate(dynamic map) → dynamic
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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