getAccountByUsername method
Returns the signed in account matching username
(the account object is created at the time of successful login)
or null
when no matching account is found.
This API is provided for convenience but getAccountBy*Id
should be used
for best reliability.
Implementation
AccountInfo? getAccountByUsername(String username) {
return _callJsMethod(() {
final jsAccount = _jsObject.getAccountByUsername(username);
return jsAccount == null ? null : AccountInfo._fromJsObject(jsAccount);
});
}