Metadatas class

nostr metadata usecase

Constructors

Metadatas({required Requests requests, required CacheManager cacheManager, required Broadcast broadcast, required EventSigner? signer})
create a new instance of Metadatas

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

broadcastMetadata(Metadata metadata, {Iterable<String>? specificRelays}) Future<Metadata>
loadMetadata(String pubKey, {bool forceRefresh = false, int idleTimeout = METADATA_IDLE_TIMEOUT}) Future<Metadata?>
load metadata for a pubkey if forceRefresh is true, it will use the network to refresh the metadata
loadMetadatas(List<String> pubKeys, RelaySet? relaySet, {dynamic onLoad(Metadata)?}) Future<List<Metadata>>
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