OptionalInput<T> class

只输入数据的业务单元

Inheritance

Constructors

OptionalInput({T? seedValue, required String semantics, bool sync = true, bool isBehavior = true, bool printLog = true, bool acceptEmpty = true, bool isDistinct = false, T? onReset()?, PersistConfig<T?>? persistConfig})

Properties

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

Methods

add(T? data) → T?
发射数据
inherited
addError(Object error, [StackTrace? stackTrace]) → void
inherited
addIfAbsent(T? data) → T?
inherited
addStream(Stream<T?> source, {bool cancelOnError = true}) Future<T?>
inherited
dispose() → void
关闭流
inherited
distinct([bool test(T? previous, T? next)?]) Stream<T?>
inherited
invalidate([T? newData]) → void
重新发送数据 用户修改数据后刷新的场景
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
where(bool test(T? event)) Stream<T?>
inherited
whereType<R>() Stream<R>
inherited

Operators

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