events property
Stream<ReceivedNostrEvent>
get
events
This is the stream which will have all events from all relays, all your sent requests will be included in this stream, and so in order to filter them, you will need to use the Stream.where method.
Nostr.instance.relays.stream.where((event) {
return event.subscriptionId == "your_subscription_id";
});
You can also use the Nostr.startEventsSubscription
method to get a stream of events that will be filtered by the subscriptionId
that you passed to it automatically.
Implementation
Stream<ReceivedNostrEvent> get events => eventsController.stream;