events property

Stream<NostrEvent> 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

// ignore: lines_longer_than_80_chars
/// 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.
Stream<NostrEvent> get events => eventsController.stream;