BlobNip94 class
BUD-08
is BlobNip94 because fromJson does not work with nostr events, only blobDescriptor!
Constructors
-
BlobNip94.new({required String content, required String url, required String mimeType, required String sha256, required int? size, String? magnet, String? torrentInfoHash, String? blurhash, List<
String> ? thumbnail, List<String> ? image, String? summary, String? alt, List<String> ? fallback, String? service, String? dimenssions}) -
BlobNip94.fromJson(Map<
String, dynamic> json) -
converts json response to BlobNip94,
does not work with nostr events! (tags)factory
Properties
- alt → String?
-
description for accessibility
final
- blurhash → String?
-
the blurhash to show while the file is being loaded by the client
final
- content → String
-
? required fields can be empty!
the content of nostr event
final
- dimenssions → String?
-
size of file in pixels as String in the form <width>x<height>
final
-
fallback
→ List<
String> ? -
zero or more fallback file sources in case url fails
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
image
→ List<
String> ? -
"image", <string with preview URI>, <Hash SHA-256>
final - magnet → String?
-
URI to torrent magnet
final
- mimeType → String
-
a string indicating the data type of the file.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- service → String?
-
service type which is serving the file (eg. NIP-96)
final
- sha256 → String
-
SHA-256 hexencoded string of the file
final
- size → int?
-
size of file in bytes
final
- summary → String?
-
text excerpt
final
-
thumbnail
→ List<
String> ? -
"thumb", <string with thumbnail URI>, <Hash SHA-256>
final - torrentInfoHash → String?
-
torrent infohash
final
- url → String
-
the url to download the file
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