StreamExtensions<T> extension
Stream扩展操作符
- on
-
- Stream<
T>
- Stream<
Methods
-
auditTime(
Duration duration) → Stream< T> -
Available on Stream<
审计时间操作符T> , provided by the StreamExtensions extension -
bufferCount(
int count, [int? startBufferEvery]) → Stream< List< T> > -
Available on Stream<
按数量缓冲T> , provided by the StreamExtensions extension -
bufferTime(
Duration duration, {int? maxBufferSize}) → Stream< List< T> > -
Available on Stream<
按时间缓冲T> , provided by the StreamExtensions extension -
bufferWith(
Stream< void> bufferStream) → Stream<List< T> > -
Available on Stream<
缓冲操作符T> , provided by the StreamExtensions extension -
combineWith<
U, R> (Stream< U> other, R combiner(T, U)) → Stream<R> -
Available on Stream<
组合值T> , provided by the StreamExtensions extension -
concatWith(
Stream< T> other) → Stream<T> -
Available on Stream<
连接值(concatWith的别名,与concatWithStream保持一致)T> , provided by the StreamExtensions extension -
concatWithStream(
Stream< T> other) → Stream<T> -
Available on Stream<
连接多个StreamT> , provided by the StreamExtensions extension -
debounceTime(
Duration duration) → Stream< T> -
Available on Stream<
防抖操作符T> , provided by the StreamExtensions extension -
defaultIfEmpty(
T defaultValue) → Stream< T> -
Available on Stream<
如果为空则返回默认值T> , provided by the StreamExtensions extension -
delayTime(
Duration duration) → Stream< T> -
Available on Stream<
延迟操作符T> , provided by the StreamExtensions extension -
dematerialize<
R> () → Stream< R> -
Available on Stream<
将StreamEvent解包为事件T> , provided by the StreamExtensions extension -
distinctUntilChanged(
) → Stream< T> -
Available on Stream<
去重操作符T> , provided by the StreamExtensions extension -
distinctUntilChangedBy(
bool equals(T, T)) → Stream< T> -
Available on Stream<
去重操作符(带自定义比较函数)T> , provided by the StreamExtensions extension -
endWith(
T value) → Stream< T> -
Available on Stream<
在流结束时添加值T> , provided by the StreamExtensions extension -
exhaustMap<
R> (Stream< R> mapper(T)) → Stream<R> -
Available on Stream<
耗尽映射T> , provided by the StreamExtensions extension -
flatMapValue<
R> (Stream< R> mapper(T)) → Stream<R> -
Available on Stream<
异步映射T> , provided by the StreamExtensions extension -
groupByValue<
K> (K keySelector(T)) → Stream< GroupedStream< K, T> > -
Available on Stream<
分组操作符T> , provided by the StreamExtensions extension -
isEmpty(
) → Future< bool> -
Available on Stream<
检查是否为空T> , provided by the StreamExtensions extension -
isNotEmpty(
) → Future< bool> -
Available on Stream<
检查是否不为空T> , provided by the StreamExtensions extension -
mapNotNull<
R> (R? mapper(T)) → Stream< R> -
Available on Stream<
安全映射T> , provided by the StreamExtensions extension -
materialize(
) → Stream< StreamEvent< T> > -
Available on Stream<
将事件包装为StreamEventT> , provided by the StreamExtensions extension -
mergeWith(
Stream< T> other) → Stream<T> -
Available on Stream<
合并多个StreamT> , provided by the StreamExtensions extension -
onErrorResumeNext(
Stream< T> resumeStream) → Stream<T> -
Available on Stream<
错误时切换到另一个流T> , provided by the StreamExtensions extension -
onErrorReturn(
T defaultValue) → Stream< T> -
Available on Stream<
错误时返回默认值T> , provided by the StreamExtensions extension -
onErrorReturnItem(
T fallbackValue) → Stream< T> -
Available on Stream<
错误时返回指定值T> , provided by the StreamExtensions extension -
pairWith<
R> (Stream< R> startMapper(T), Stream<R> endMapper(T)) → Stream<R> -
Available on Stream<
开始和结束配对T> , provided by the StreamExtensions extension -
retryWithDelay(
{int count = 3, Duration delay = const Duration(seconds: 1)}) → Stream< T> -
Available on Stream<
重试操作符T> , provided by the StreamExtensions extension -
sampleTime(
Duration duration) → Stream< T> -
Available on Stream<
按时间采样T> , provided by the StreamExtensions extension -
sampleWith(
Stream< void> sampler) → Stream<T> -
Available on Stream<
采样操作符T> , provided by the StreamExtensions extension -
scanValue<
R> (R accumulator(R, T), R seed) → Stream< R> -
Available on Stream<
扫描操作符T> , provided by the StreamExtensions extension -
Available on Stream<
缓存最后一个值T> , provided by the StreamExtensions extension -
skipUntil(
Stream< void> trigger) → Stream<T> -
Available on Stream<
跳过直到某个条件T> , provided by the StreamExtensions extension -
startWith(
T value) → Stream< T> -
Available on Stream<
在流开始前添加初始值T> , provided by the StreamExtensions extension -
switchMapValue<
R> (Stream< R> mapper(T)) → Stream<R> -
Available on Stream<
切换到另一个StreamT> , provided by the StreamExtensions extension -
throttleTime(
Duration duration) → Stream< T> -
Available on Stream<
节流操作符T> , provided by the StreamExtensions extension -
timeoutTime(
Duration duration, {void onTimeout(EventSink< T> )?}) → Stream<T> -
Available on Stream<
超时操作符T> , provided by the StreamExtensions extension -
whereIf(
bool condition(T)) → Stream< T> -
Available on Stream<
条件过滤T> , provided by the StreamExtensions extension -
windowCount(
int count, [int? startWindowEvery]) → Stream< Stream< T> > -
Available on Stream<
按数量窗口T> , provided by the StreamExtensions extension -
windowTime(
Duration duration) → Stream< Stream< T> > -
Available on Stream<
按时间窗口T> , provided by the StreamExtensions extension -
windowWith(
Stream< void> windowStream) → Stream<Stream< T> > -
Available on Stream<
窗口操作符T> , provided by the StreamExtensions extension -
withLatestFrom<
U, R> (Stream< U> other, R combiner(T, U)) → Stream<R> -
Available on Stream<
与另一个流的最新值组合T> , provided by the StreamExtensions extension -
zipWith<
U, R> (Stream< U> other, R combiner(T, U)) → Stream<R> -
Available on Stream<
压缩值T> , provided by the StreamExtensions extension