addTag static method
Implementation
static Future<void> addTag(TagInfo? taginfo, Function(int? code)? finished) async {
if (taginfo == null) {
developer.log("addTag fail: taginfo is null", name: "RongIMClient");
return null;
}
Map map = {"tagId": taginfo.tagId, "tagName": taginfo.tagName, "count": taginfo.count, "timestamp": taginfo.timestamp};
Map? result = await _channel.invokeMethod(RCMethodKey.AddTag, map);
if (finished != null) {
finished(result!["code"]);
}
}