should it be 
```
MockHttpExpectation(this.method, this.url, [this.data, this.headers, bool withCredentials])
    : withCredentials = withCredentials == true;
```