getRelatedWebsiteSets method

Future<List<RelatedWebsiteSet>> getRelatedWebsiteSets()

Returns the effective Related Website Sets in use by this profile for the browser session. The effective Related Website Sets will not change during a browser session.

Implementation

Future<List<RelatedWebsiteSet>> getRelatedWebsiteSets() async {
  var result = await _client.send('Storage.getRelatedWebsiteSets');
  return (result['sets'] as List)
      .map((e) => RelatedWebsiteSet.fromJson(e as Map<String, dynamic>))
      .toList();
}