response property

URLResponse? response

The server response to the request associated with this task.

See NSURLSessionTask.response

Implementation

URLResponse? get response {
  final nsResponse = _nsObject.response;
  if (nsResponse == null) {
    return null;
  }
  return URLResponse._exactURLResponseType(nsResponse);
}