getOperatingSystemVersion static method
获取当前设备的操作系统版本号。
Implementation
static Future<String?> getOperatingSystemVersion() async {
try {
return Platform.operatingSystemVersion;
} catch (e) {
debugPrint("Failed to get operating system version: '${e.toString()}'.");
return null;
}
}