forStatusCodeMatching method

HttpWaitStrategy forStatusCodeMatching(
  1. bool matches(
    1. int status
    )
)

Accepts every status matches says yes to ((s) => s < 500).

Implementation

HttpWaitStrategy forStatusCodeMatching(bool Function(int status) matches) {
  _matcher = matches;
  return this;
}