StreamExtension extension

on

Methods

firstEvent<T>(dynamic responseHandler(T), {Duration? timeout = const Duration(seconds: 5)}) Future<T?>

Available on Stream, provided by the StreamExtension extension

listenTo<T>(dynamic eventHandler(T)) StreamSubscription<T>

Available on Stream, provided by the StreamExtension extension

waitForEvent<T>(dynamic responseHandler(T), {Duration? timeout = const Duration(seconds: 5)}) Future<T?>

Available on Stream, provided by the StreamExtension extension