BoolOutput<ARG> class

只接收bool类型数据的Output

Inheritance
Mixed in types

Constructors

BoolOutput({required bool seedValue, required String semantics, bool sync = true, bool isBehavior = true, bool printLog = true, required FetchCallback<bool, ARG?> fetch, bool onReset()?, PersistConfig<bool>? persistConfig})

Properties

future Future<bool>
输出Future
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
no setterinherited
latest bool
最新的值
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<bool>
输出Stream
getter/setter pairinherited

Methods

addError(Object error, [StackTrace? stackTrace]) → void
inherited
dispose() → void
关闭流
inherited
distinct([bool test(bool previous, bool next)?]) Stream<bool>
inherited
first([bool cancelSubscription = false]) Future<bool>
输出Future, cancelSubscription决定是否取消订阅
inherited
invalidate([bool? newData]) → void
重新发送数据 用户修改数据后刷新的场景
inherited
listen(ValueChanged<bool> listener, {Function? onError, VoidCallback? onDone, bool? cancelOnError}) StreamSubscription<bool>
监听流
inherited
map<S>(S convert(bool 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<bool>
inherited
toggle() bool?
切换true/false 并发射
inherited
toString() String
A string representation of this object.
inherited
update([ARG? arg]) Future<bool>
使用内部的trigger获取数据
inherited
where(bool test(bool event)) Stream<bool>
inherited
whereType<R>() Stream<R>
inherited

Operators

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