Observer<T> class abstract

Implemented types
Implementers

Constructors

Observer({NextCallback<T>? next, ErrorCallback? error, CompleteCallback? complete, bool ignoreErrors = false})
An observer with custom handlers:
factory
Observer.complete(CompleteCallback complete, {bool ignoreErrors = false})
An observer that is only interested in completions.
factory
Observer.error(ErrorCallback error)
An observer that is only interested in errors.
factory
Observer.next(NextCallback<T> next, {bool ignoreErrors = false})
An observer that is only interested in values.
factory

Properties

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

Methods

complete() → void
Pass completion to the observer.
dispose() → void
Disposes the resource.
inherited
error(Object error, StackTrace stackTrace) → void
Pass an error to the observer.
next(T value) → void
Pass a value to the observer.
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