getVersion method

Future<String> getVersion(
  1. String sdkId
)

Implementation

Future<String> getVersion(String sdkId) async {
	final res = await _methodChannel.invokeMethod<String>(
		'SystemApi.getVersion',
		{
			"sdkId": sdkId,
		}
	);
	if (res == null) throw AssertionError("received null result from platform method getVersion");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as String);
}