single<T> function Null safety

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

Implementation

Binder<T> single<T>(
  SingleValueBuilder<T> fn, {
  ErrorBuilder<T>? catchError,
  Equals<T>? equals,
  DisposeCallback<T>? dispose,
}) =>
    ValueBinder(
      (_, __) => fn(),
      key: T,
      catchError: catchError,
      equals: equals,
      dispose: dispose,
    );