StreamOutput<T> class
转发上游流的业务单元
- Inheritance
- Mixed in types
-
- OutputMixin<
T, void>
- OutputMixin<
- Implementers
Constructors
-
StreamOutput(Stream<
T> source, {required T seedValue, required String semantics, bool sync = true, bool printLog = true, bool isBehavior = true, T onReset()?, PersistConfig<T> ? persistConfig, bool skipError = false})
Properties
-
future
→ Future<
T> -
输出Future
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
no setterinherited
- latest ↔ T
-
最新的值
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
↔ Stream<
T> -
输出Stream
getter/setter pairinherited
Methods
-
addError(
Object error, [StackTrace? stackTrace]) → void -
inherited
-
dispose(
) → void -
关闭流
override
-
distinct(
[bool test(T previous, T next)?]) → Stream< T> -
inherited
-
first(
[bool cancelSubscription = false]) → Future< T> -
输出Future,
cancelSubscription
决定是否取消订阅inherited -
invalidate(
[T? newData]) → void -
重新发送数据 用户修改数据后刷新的场景
inherited
-
listen(
ValueChanged< T> listener, {Function? onError, VoidCallback? onDone, bool? cancelOnError}) → StreamSubscription<T> -
监听流
inherited
-
map<
S> (S convert(T event)) → Stream< S> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
清理保存的值, 恢复成初始状态
inherited
-
runtimeSummary(
) → String -
运行时概要
inherited
-
sample(
Duration duration) → Stream< T> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
[void arg]) → Future< T> -
使用内部的trigger获取数据
inherited
-
where(
bool test(T event)) → Stream< T> -
inherited
-
whereType<
R> () → Stream< R> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
optional<
T> (Stream< T> source, {T? seedValue, required String semantics, bool sync = true, bool printLog = true, bool isBehavior = true, T? onReset()?, PersistConfig<T?> ? persistConfig, bool skipError = false}) → OptionalStreamOutput<T>