fetch method

Future<Response> fetch(
  1. Request resource, [
  2. RequestInit? init
])

Implementation

Future<interop.Response> fetch(interop.Request resource,
        [interop.RequestInit? init]) =>
    js_util
        .promiseToFuture(js_util.callMethod(this, 'fetch', [resource, init]));