isBoolean top-level constant
TypeMatcher<bool>
const isBoolean
Validates that value is a bool
.
Usage:
var response = await client.request("/foo").get();
expect(response, hasResponse(200, {"isActive": isBoolean}));
Implementation
const TypeMatcher<bool> isBoolean = TypeMatcher<bool>();