setToIsWaiting method

  1. @override
void setToIsWaiting({
  1. SideEffects<T>? sideEffects,
  2. bool shouldOverrideDefaultSideEffects(
    1. SnapState<T>
    )?,
  3. StateInterceptor<T>? stateInterceptor,
})
override

Set the state to the waiting status

Implementation

@override
void setToIsWaiting({
  SideEffects<T>? sideEffects,
  bool Function(SnapState<T>)? shouldOverrideDefaultSideEffects,
  StateInterceptor<T>? stateInterceptor,
}) {
  _isDone = false;
  notify(
    nextSnap: _snapState.copyToIsWaiting(''),
    sideEffects: sideEffects,
    shouldOverrideDefaultSideEffects: shouldOverrideDefaultSideEffects,
    stateInterceptor: stateInterceptor,
  );
}