getQJSPlatformName function
Implementation
String getQJSPlatformName() {
if (Platform.isAndroid) {
return 'android';
} else if (Platform.isIOS) {
return 'ios';
} else if (Platform.isLinux) {
return 'linux';
} else if (Platform.isMacOS) {
return 'macosx';
} else if (Platform.isWindows) {
return 'mingw';
} else {
throw UnsupportedError('Unsupport Platform ${Abi.current().toString()}');
}
}