Response.created(String location, { body, Map<String, dynamic> headers })

Represents a 201 response.

The location is a URI that is added as the Location header.

Source

Response.created(String location,
    {dynamic body, Map<String, dynamic> headers})
    : this(HttpStatus.CREATED,
    _headersWith(headers, {HttpHeaders.LOCATION: location}), body);