NostrEventsStream class

Represents a holde class for the stream of nostr events and the subscription id.

Constructors

NostrEventsStream({required Stream<NostrEvent> stream, required String subscriptionId, required NostrRequest request})
Represents a holde class for the stream of nostr events and the subscription id.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
request NostrRequest
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<NostrEvent>
This the stream of nostr events that you can listen to and get the events.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
subscriptionId String
This is the subscription id of the stream. You can use this to unsubscribe from the stream.
final

Methods

close() → void
This method will close the subscription of the subscriptionId that you passed to it.
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