getSystemName static method
获取设备系统名称
Implementation
static Future<String> getSystemName() async {
Map<String, dynamic> deviceData = await getDeviceData();
if (kIsWeb) {
return deviceData['browserName'];
} else if (Platform.isAndroid) {
return deviceData['display'];
} else if (Platform.isIOS) {
return deviceData['systemName'];
}
return '';
}