Subject<T> class
abstract
A Subject is a sort of bridge or proxy that acts both as an observer and as an Observable. Because it is an observer, it can subscribe to one or more Observables, and because it is an Observable, it can pass through the items it observes by reemitting them, and it can also emit new items.
Modified from: https://reactivex.io/documentation/subject.html
- Implemented types
-
- Observable<
T> - Observer<
T> - Disposable
- Observable<
- Implementers
- Available Extensions
Constructors
- Subject()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observe(
OnData< T> onData) → Disposable -
Use
observable.observe
to start observe an observable, use returnedobservation
to stop observe.inherited -
onData(
T data) → void -
Use
observer.onData
to notify observer.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited