getSdkVersion static method
get the agora native sdk version
Implementation
static Future<String?> getSdkVersion() async {
final res = await AgoraRtmPlugin.callMethodForStatic("getSdkVersion", null);
if (res["errorCode"] != 0)
throw AgoraRtmClientException(
"getSdkVersion failed errorCode:${res['errorCode']}",
res['errorCode']);
return res["version"];
}