getUnReadMessage method

Future getUnReadMessage(
  1. dynamic partnerid
)

Implementation

Future<dynamic> getUnReadMessage(partnerid) async {
  try {
    /*
        结果 type: 4 未读消息
        value: 未读消息数量
        desc: 文本获取未读消息数
        */
    final result =
    sobotMethodChannel.invokeMethod(getUnReadMessageMethod, partnerid);
    return result;
  } on PlatformException catch (e) {
    //抛出异常
    print(e);
    return {};
  }
}