newHttpMetric method

HttpMetric newHttpMetric(
  1. String url,
  2. HttpMethod httpMethod
)

Creates a HttpMetric object for collecting network performance data for one request/response. Only works for native apps. A stub class is created for web which does nothing

Implementation

HttpMetric newHttpMetric(String url, HttpMethod httpMethod) {
  return HttpMetric._(_delegate.newHttpMetric(url, httpMethod));
}