StreamLifecycleExt<T> extension

on

Methods

bindLifecycle(ILifecycle lifecycle, {LifecycleState state = LifecycleState.started, bool repeatLastOnRestart = false, bool closeWhenCancel = false, bool? cancelOnError}) Stream<T>

Available on Stream<T>, provided by the StreamLifecycleExt extension

将Stream关联到lifecycle repeatLastOnRestart 是指当从新进入到状态时,是否发射之前的数据