isInteger top-level constant

TypeMatcher<int> const isInteger

Validates that value is an int.

Usage:

    var response = await client.request("/foo").get();
    expect(response, hasResponse(200, {"id": isInteger}));

Implementation

const TypeMatcher<int> isInteger = TypeMatcher<int>();