StreamControllerBehaviorSubject<T> class
StreamController BehaviorSubject 包装类
封装 BehaviorSubject,不暴露 close/dispose 方法给外部 遵循"谁创建谁销毁"的原则 仅用于 EasyStreamController 内部使用
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
是否已关闭
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
T> -
获取 Stream
no setter
- valueOrNull → T?
-
获取当前值(如果存在)
no setter
Methods
-
add(
T value) → void - 添加值
-
addError(
Object error, [StackTrace? stackTrace]) → void - 添加错误
-
getValueOrDefault(
T defaultValue) → T - 获取当前值或默认值
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited