W3cubDocs

/Dart 2

fetch method

Future fetch (dynamic input, [ Map init ])

Implementation

Future fetch(/*RequestInfo*/ input, [Map init]) {
  var init_dict = null;
  if (init != null) {
    init_dict = convertDartToNative_Dictionary(init);
  }
  return promiseToFuture(JS("", "#.fetch(#, #)", this, input, init_dict));
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/Window/fetch.html