getDeviceInfo static method
Get device information including chipset, NPU/GPU/CPU support, and performance level
Implementation
static Future<DeviceInfo> getDeviceInfo() async {
try {
final result = await _channel.invokeMethod('getDeviceInfo');
return DeviceInfo.fromMap(Map<String, dynamic>.from(result as Map));
} on PlatformException catch (e) {
throw Exception('Failed to get device info: ${e.message}');
}
}