getActiveAccount method

AccountInfo? getActiveAccount()

Gets the currently active account.

Implementation

AccountInfo? getActiveAccount() {
  return _callJsMethod(() {
    final jsAccount = _jsObject.getActiveAccount();

    return jsAccount == null ? null : AccountInfo._fromJsObject(jsAccount);
  });
}