getSdkVersion method Null safety

Future<String?> getSdkVersion()

查询 SDK 版本号。

该方法在加入频道前后都能调用。

Returns

当前的 SDK 版本号,格式为字符串,如 2.3.0。

Implementation

///
/// **Returns**
///
/// 当前的 SDK 版本号,格式为字符串,如 2.3.0。
static Future<String?> getSdkVersion() {
  return RtcEngine.methodChannel.invokeMethod('getSdkVersion');
}