onResponse method

void onResponse(
  1. ResOptions response
)

Implementation

void onResponse(ResOptions response) {
  var key = response.id.toString();
  if (logMap.containsKey(key)) {
    logMap.update(key, (value) {
      response.duration = response.responseTime!.millisecondsSinceEpoch -
          value.reqOptions!.requestTime!.millisecondsSinceEpoch;
      value.resOptions = response;
      return value;
    });
  }
}