StreamUtils class final

A collection of static utility methods for working with Stream.

Provides convenient access via the singleton instance StreamUtils.i.

Annotations
  • @Deprecated('May be removed from package in the future!')

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

firstToFuture<T>(Stream<T> stream) Future<T?>
Returns a Future that completes with the first value from the stream.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
periodic<T extends Object>(FutureOr<T> callback(), Duration interval) Stream<T>
Creates a Stream that periodically executes a callback function.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

i StreamUtils
The singleton instance for accessing stream helpers.
final