create<T, S> method Null safety

BinderState<T> create<T, S>(
  1. {required StateBuilder<T, S> computeState,
  2. required ObserveCallback<T, S> observeFrom,
  3. DisposeCallback<S>? disposeState,
  4. T? pendingValue,
  5. ErrorBuilder<T>? catchError,
  6. Equals<T>? equals,
  7. DisposeCallback<T>? disposeValue,
  8. required Object key,
  9. required ObservableLocator locator}
)

Implementation

static BinderState<T> create<T, S>({
  required StateBuilder<T, S> computeState,
  required ObserveCallback<T, S> observeFrom,
  DisposeCallback<S>? disposeState,
  T? pendingValue,
  ErrorBuilder<T>? catchError,
  Equals<T>? equals,
  DisposeCallback<T>? disposeValue,
  required Object key,
  required ObservableLocator locator,
}) =>
    BinderStateImpl(
      computeState: computeState,
      observeFrom: observeFrom,
      disposeState: disposeState,
      pendingValue: pendingValue,
      catchError: catchError,
      equals: equals,
      disposeValue: disposeValue,
      key: key,
      locator: locator,
    );