NdkResponse class

Represents a response from a Nostr Development Kit (NDK) request.

Constructors

NdkResponse(String requestId, Stream<Nip01Event> stream, {Map<String, RelayRequestOutcome> relayOutcomes()?, Stream<Map<String, RelayRequestOutcome>> relayOutcomesStream()?, Future<Map<String, RelayRequestOutcome>>? relayOutcomesDone})
Creates a new NdkResponse instance.

Properties

future → Future<List<Nip01Event>>
A future that resolves to a list of all Nip01Event objects once the request is complete (EOSE rcv).
no setter
hashCode → int
The hash code for this object.
no setterinherited
relayOutcomes → Map<String, RelayRequestOutcome>
What the request ended with on each relay it was sent to, as it stands now, keyed by relay url.
no setter
relayOutcomesDone → Future<Map<String, RelayRequestOutcome>>
relayOutcomes once the request is over, either because every relay ended it or because it ran into its timeout.
no setter
relayOutcomesStream → Stream<Map<String, RelayRequestOutcome>>
relayOutcomes again on every change, starting with what it holds when the stream is listened to, and closed once the request is over.
no setter
requestId ↔ String
The unique identifier for the request that generated this response.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stream → Stream<Nip01Event>
A stream of Nip01Event objects returned by the request.
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