Signal class

没有数据, 只发射信号的IO

Inheritance

Constructors

Signal({required String semantics, bool isBehavior = false})

Properties

future Future
输出Future
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasStickySignal bool
是否有粘性信号可以处理
no setter
isDisposed bool
no setterinherited
latest ↔ dynamic
最新的值
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream
输出Stream
getter/setter pairinherited

Methods

add(dynamic data) → void
发射数据
override
addError(Object error, [StackTrace? stackTrace]) → void
inherited
addIfAbsent(dynamic data) → dynamic
inherited
addStream(Stream source, {bool cancelOnError = true}) Future
inherited
dispose() → void
关闭流
inherited
distinct([bool test(dynamic previous, dynamic next)?]) Stream
inherited
emit() → void
发射信号
first([bool cancelSubscription = false]) Future
输出Future, cancelSubscription决定是否取消订阅
inherited
invalidate([dynamic newData]) → void
重新发送数据 用户修改数据后刷新的场景
inherited
listen(ValueChanged listener, {Function? onError, VoidCallback? onDone, bool? cancelOnError}) StreamSubscription
监听流
inherited
map<S>(S convert(dynamic event)) Stream<S>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
清理保存的值, 恢复成初始状态
override
runtimeSummary() String
运行时概要
inherited
sample(Duration duration) Stream
inherited
toString() String
A string representation of this object.
inherited
update([dynamic arg]) Future
使用内部的trigger获取数据
inherited
where(bool test(dynamic event)) Stream
inherited
whereType<R>() Stream<R>
inherited

Operators

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