addCollect method

Future<NIMResult<NIMCollectInfo>> addCollect(
  1. {required int type,
  2. required String data,
  3. String? ext,
  4. String? uniqueId}
)

添加一条收藏

type 收藏类型,要求 > 0 date 收藏内容,最大20k ext 扩展字段,最大1k uniqueId 去重唯一ID

Implementation

Future<NIMResult<NIMCollectInfo>> addCollect({
  required int type,
  required String data,
  String? ext,
  String? uniqueId,
}) {
  return _platform.addCollect(
    type: type,
    data: data,
    ext: ext,
    uniqueId: uniqueId,
  );
}