addCollect method Null safety
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,
);
}