setIMToken static method
Implementation
static void setIMToken(String uid, String token) async {
if (token == null || token.length == 0 || uid == null || uid.length == 0)
return;
_channel.invokeMethod("setIMToken", {"userId": uid, "imToken": token});
}