NostrEventsStream class
Represents a holde class for the stream of nostr events and the subscription id.
Constructors
-
NostrEventsStream({required Stream<
ReceivedNostrEvent> 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<
ReceivedNostrEvent> -
This the stream of nostr events that you can listen to and get the events.
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.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 -
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