hasBody function
Matcher
hasBody([
- dynamic value
Expects a response to have the given body.
If true is passed as the value (default), then this matcher will simply assert
that the response has a non-empty body.
If value is a List<int>, then it will be matched against res.bodyBytes.
Otherwise, the string value will be matched against res.body.
Implementation
Matcher hasBody([value]) => _HasBody(value ?? true);