getSdkVersion property

Future<String> getSdkVersion

Get the current Freshchat flutter SDK version as well as the corresponding native SDK version (Android or iOS)

Implementation

static Future<String> get getSdkVersion async {
  final String sdkVersion = await _channel.invokeMethod('getSdkVersion');
  final String operatingSystem = Platform.operatingSystem;
  // As there is no simple way to get current freshchat flutter sdk version, we are hardcoding here.
  final String allSdkVersion = "flutter-0.6.0-$operatingSystem-$sdkVersion ";
  return allSdkVersion;
}