getVisits method

Future<List<VisitItem>> getVisits(
  1. UrlDetails details
)

Retrieves information about visits to a URL.

Implementation

Future<List<VisitItem>> getVisits(UrlDetails details) async {
  var $res = await promiseToFuture<JSArray>(
      $js.chrome.history.getVisits(details.toJS));
  return $res.toDart
      .cast<$js.VisitItem>()
      .map((e) => VisitItem.fromJS(e))
      .toList();
}