The default constructor.
There exist convenience constructors for common response status codes and you should prefer to use those.
Source
Response(int statusCode, Map<String, dynamic> headers, dynamic body) { this.body = body; this.headers = new LowercaseMap.fromMap(headers ?? {}); this.statusCode = statusCode; }