getCurrentPlatform function
Get current platform
Implementation
IapPlatform getCurrentPlatform() {
if (Platform.isIOS) {
return IapPlatform.IOS;
} else if (Platform.isAndroid) {
return IapPlatform.Android;
}
throw UnsupportedError('Platform not supported');
}