BehaviorSubject<T> class

A Subject that emits its initial or last seen value to its subscribers.

Inheritance
Available Extensions

Constructors

BehaviorSubject(T _value)

Properties

hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
Returns true, if this resource has been disposed.
no setterinherited
isObserved bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
Returns the current value.
no setter

Methods

complete() → void
Pass completion to the observer.
inherited
dispose() → void
Disposes the resource.
inherited
error(Object error, StackTrace stackTrace) → void
Pass an error to the observer.
inherited
next(T value) → void
Pass a value to the observer.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(Observer<T> observer) Disposable
Subscribes with the provided observer.
inherited
subscribeToActive(Observer<T> observer) Disposable
override
subscribeToComplete(Observer<T> observer) Disposable
override
subscribeToError(Observer<T> observer, Object error, StackTrace stackTrace) Disposable
inherited
toString() String
A string representation of this object.
inherited

Operators

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