getDeviceInfo static method

Future<Map<String, dynamic>> getDeviceInfo()

获取设备信息

Implementation

static Future<Map<String, dynamic>> getDeviceInfo() async {
  final deviceInfoPlugin = DeviceInfoPlugin();
  final deviceInfo = await deviceInfoPlugin.deviceInfo;
  return deviceInfo.data;
}