next<T extends Object?> method
Returns the next event of type T.
Implementation
Future<T> next<T extends Object?>() => on<T>().first;
Returns the next event of type T.
Future<T> next<T extends Object?>() => on<T>().first;