getAccounts method

Future<List<AccountInfo>> getAccounts()

Retrieves a list of AccountInfo objects describing the accounts present on the profile.

getAccounts is only supported on dev channel.

Implementation

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