OptionalIntIO class
只接收int类型数据的IO
Constructors
Properties
-
future
→ Future<
int?> -
输出Future
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
no setterinherited
- latest ↔ int?
-
最新的值
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
↔ Stream<
int?> -
输出Stream
getter/setter pairinherited
Methods
-
add(
int? data) → int? -
发射数据
inherited
-
addError(
Object error, [StackTrace? stackTrace]) → void -
inherited
-
addIfAbsent(
int? data) → int? -
inherited
-
addStream(
Stream< int?> source, {bool cancelOnError = true}) → Future<int?> -
inherited
-
dispose(
) → void -
关闭流
inherited
-
distinct(
[bool test(int? previous, int? next)?]) → Stream< int?> -
inherited
-
first(
[bool cancelSubscription = false]) → Future< int?> -
输出Future,
cancelSubscription
决定是否取消订阅inherited -
invalidate(
[int? newData]) → void -
重新发送数据 用户修改数据后刷新的场景
inherited
-
listen(
ValueChanged< int?> listener, {Function? onError, VoidCallback? onDone, bool? cancelOnError}) → StreamSubscription<int?> -
监听流
inherited
-
map<
S> (S convert(int? event)) → Stream< S> -
inherited
-
minus(
[int value = 1]) → int? -
减一个值 并发射
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
plus(
[int value = 1]) → int? -
加一个值 并发射
inherited
-
reset(
) → void -
清理保存的值, 恢复成初始状态
inherited
-
runtimeSummary(
) → String -
运行时概要
inherited
-
sample(
Duration duration) → Stream< int?> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
[dynamic arg]) → Future< int?> -
使用内部的trigger获取数据
inherited
-
where(
bool test(int? event)) → Stream< int?> -
inherited
-
whereType<
R> () → Stream< R> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited