Set the current login account for data isolation and user information display.
The account must be set before mini program startup.
info: The information of the current login account. It is left empty if no user is logged in.
void setAccount(AccountInfo? info)
Sample code:
_tcmppFlutterPlugin.setAccount(AccountInfo(
uid: "12345",
avatarUrl: "https://picsum.photos/250?image=9",
accountName: "SimpleAccount"));
Was this page helpful?