Subject<T> class

A Subject is a special type of Observable that allows values to be multicast to many Observer.

Every Subject is an Observable and an Observer. You can subscribe to a Subject, and you can call next to feed values as well as error and complete.

Implemented types
Mixed in types
Implementers
Available Extensions

Constructors

Subject()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isDisposed bool
Returns true, if this resource has been disposed.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

complete() → void
Pass completion to the observer.
override
dispose() → void
Disposes the resource.
override
error(Object error, [StackTrace stackTrace]) → void
Pass an error to the observer.
override
lift<R>(Operator<T, R> operator) Observable<R>
Creates a new observable with the provided operator.
inherited
next(T value) → void
Pass a value to the observer.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
subscribe(Observer<T> observer) Disposable
Subscribes with the provided observer.
override
subscribeToActive(Observer observer) Disposable
subscribeToComplete(Observer observer) Disposable
subscribeToError(Observer observer, Object error, StackTrace stackTrace) Disposable
toString() String
Returns a string representation of this object.
inherited

Operators

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