restart method

void restart(
  1. Stream<T> stream
)

Re-executes the stream operation with a new stream. This binds to a static stream instance. See restartDeferred for single-subscription streams.

Implementation

void restart(Stream<T> stream) {
  restartDeferred(() => stream);
}