BlobDescriptor class

Descriptor of a blob - when getting a blob from a server

Constructors

BlobDescriptor.new({required String url, required String sha256, required int? size, required DateTime uploaded, String? type, BlobNip94? nip94})
BlobDescriptor.fromJson(Map<String, dynamic> json)
converts json response to BlobDescriptor
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
nip94 BlobNip94?
NIP-94 metadata
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sha256 String
SHA-256 hexencoded string of the file
final
size int?
size of file in bytes
final
type String?
mime type of the file
final
uploaded DateTime
time of upload
final
url String
server url e.g. https://example.com/&lt;sha256>
final

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