getSdkVersion static method

Future<VersionInfoModel> getSdkVersion()

TODO: 获取sdk版本

Implementation

static Future<VersionInfoModel> getSdkVersion() async {
  String result = await _channel.invokeMethod('getSdkVersion');
  final resArr = result.split(',');
  VersionInfoModel versionInfo = VersionInfoModel.fromJson(
      {'version': resArr[0], 'buildDate': resArr[1], 'copyRight': resArr[2]});
  return versionInfo;
}