addFromResponse method Null safety

void addFromResponse(
  1. Response resp
)

Parses and adds all 'set-cookies' from http.Response to the Cookie store

Implementation

void addFromResponse(http.Response resp) {
  if (resp.headers.containsKey('set-cookie')) {
    addFromHeader(resp.headers['set-cookie']!);
  }
}