getPlatformName function
获取当前平台的名字
Implementation
String getPlatformName() {
if (kIsWeb) {
return "web";
}
try {
return Platform.operatingSystem;
} catch (e) {
return "error";
}
}
获取当前平台的名字
String getPlatformName() {
if (kIsWeb) {
return "web";
}
try {
return Platform.operatingSystem;
} catch (e) {
return "error";
}
}