login abstract method

Future<void> login(
  1. ZIMUserInfo userInfo,
  2. [String? token]
)

Login, you must log in before using all functions. userInfo Unique ID used to identify the user. Note that the userID must be unique under the same appID, otherwise mutual kicks out will occur. token The token issued by the developer's business server, used to ensure security. The generation rules are detailed in ZEGO document website.

Implementation

Future<void> login(ZIMUserInfo userInfo, [String? token]);