addCollect method Null safety

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

Add a message to the favorites.

type Specify the favorites type, the value must be larger than 0. data Specify the content (size limit: 20 KB) ext The extension field (size limit: 1 KB) uniqueId The unique 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,
  );
}