eventTypeUpdatesStream top-level property
final
Implementation
final eventTypeUpdatesStream =
StreamProvider.family<int, String>((ref, key) async* {
final client = await ref.watch(alwaysClientProvider.future);
int counter = 0; // to ensure the value updates
// ignore: unused_local_variable
await for (final value in client.subscribeEventTypeStream(key)) {
yield counter;
counter += 1;
}
});