observable_locator library Null safety

Classes

Binder<T>
BinderState<T>
FutureBinder<T>
ObservableLocator
ObservableSource
StreamBinder<T>
ValueBinder<T>

Extensions

ObserveTypeExtensions

Functions

bind<T>(BindValueBuilder<T> fn, {ErrorBuilder<T>? catchError, Equals<T>? equals, DisposeCallback<T>? dispose}) Binder<T>
bindFuture<T>(BindValueBuilder<Future<T>> fn, {T? pendingValue, ErrorBuilder<T>? catchError, Equals<T>? equals, DisposeCallback<T>? dispose, String? name}) Binder<T>
bindFutureValue<T>(StateBuilder<T, Future<T>> fn, {T? pendingValue, ErrorBuilder<T>? catchError, Equals<T>? equals, DisposeCallback<T>? dispose, String? name}) Binder<T>
bindStream<T>(BindValueBuilder<Stream<T>> fn, {T? pendingValue, ErrorBuilder<T>? catchError, Equals<T>? equals, DisposeCallback<T>? dispose, String? name}) Binder<T>
bindStreamValue<T>(StateBuilder<T, Stream<T>> fn, {T? pendingValue, ErrorBuilder<T>? catchError, Equals<T>? equals, DisposeCallback<T>? dispose, String? name}) Binder<T>
bindValue<T>(ValueBuilder<T> fn, {ErrorBuilder<T>? catchError, Equals<T>? equals, DisposeCallback<T>? dispose}) Binder<T>
single<T>(SingleValueBuilder<T> fn, {ErrorBuilder<T>? catchError, Equals<T>? equals, DisposeCallback<T>? dispose}) Binder<T>
singleFuture<T>(SingleValueBuilder<Future<T>> fn, {T? pendingValue, ErrorBuilder<T>? catchError, Equals<T>? equals, DisposeCallback<T>? dispose, String? name}) Binder<T>
singleStream<T>(SingleValueBuilder<Stream<T>> fn, {T? pendingValue, ErrorBuilder<T>? catchError, Equals<T>? equals, DisposeCallback<T>? dispose, String? name}) Binder<T>

Typedefs

BindValueBuilder<T> = T Function(ObservableSource source)
DisposeCallback<T> = void Function(T value)
Equals<T> = bool Function(T? newValue, T? oldValue)
ErrorBuilder<T> = T Function(Object error)
ObserveCallback<T, S> = T? Function(S computedState)
SingleValueBuilder<T> = T Function()
StateBuilder<T, S> = S Function(ObservableSource locator, T? currentValue, S? currentState)
StreamValueBuilder<T> = Stream<T> Function(ObservableSource locator, T? oldValue, Stream<T>? oldStream)
ValueBuilder<T> = T Function(ObservableSource locator, T? oldvalue)

Exceptions / Errors

LocatorKeyNotFoundException
LocatorUsedOutsideCallbackException
LocatorValueAlreadyRegisteredException
LocatorValueMissingException