pause method

  1. @override
void pause({
  1. dynamic pausedValue,
  2. bool respectNextCall = false,
})
inherited

Pauses incrementing the call count. Call args will not be recorded. The default value will be used unless pausedValue is provided.

This ignores throw next call and return next call unless respectNextCall is true.

Implementation

@override
void pause({
  T? pausedValue,
  bool respectNextCall = false,
}) {
  _pause = true;
  _pauseRespectsNextCall = respectNextCall;
  __pauseValue = pausedValue;
}