removeTag static method

Future<void> removeTag(
  1. String? targetId,
  2. dynamic finished(
    1. int? code
    )?
)

Implementation

static Future<void> removeTag(String? targetId, Function(int? code)? finished) async {
  if (targetId == null) {
    developer.log("removeTag fail: targetId is null", name: "RongIMClient");
    return null;
  }
  Map map = {"tagId": targetId};
  Map? result = await _channel.invokeMethod(RCMethodKey.RemoveTag, map);
  if (finished != null) {
    finished(result!["code"]);
  }
}