pinInfo method
Implementation
Future<MessagePinInfo?> pinInfo() async {
if (_msgId == null) {
return null;
}
Map req = {"msgId": msgId};
Map result = await _emMessageChannel.invokeMethod(
ChatMethodKeys.getPinInfo,
req,
);
try {
ChatError.hasErrorFromResult(result);
if (result.containsKey(ChatMethodKeys.getPinInfo)) {
return result.getValue<MessagePinInfo>(ChatMethodKeys.getPinInfo,
callback: (obj) => MessagePinInfo.fromJson(obj));
} else {
return null;
}
} on ChatError {
rethrow;
}
}