bind<T> function Null safety

Binder<T> bind<T>(
  1. BindValueBuilder<T> fn,
  2. {ErrorBuilder<T>? catchError,
  3. Equals<T>? equals,
  4. DisposeCallback<T>? dispose}
)

Implementation

Binder<T> bind<T>(
  BindValueBuilder<T> fn, {
  ErrorBuilder<T>? catchError,
  Equals<T>? equals,
  DisposeCallback<T>? dispose,
}) =>
    ValueBinder(
      (locator, __) => fn(locator),
      key: T,
      catchError: catchError,
      equals: equals,
      dispose: dispose,
    );