get method

Gets a list of top sites.

Implementation

Future<List<MostVisitedURL>> get() async {
  var $res = await promiseToFuture<JSArray>($js.chrome.topSites.get());
  return $res.toDart
      .cast<$js.MostVisitedURL>()
      .map((e) => MostVisitedURL.fromJS(e))
      .toList();
}