getDeviceInfo static method
Implementation
static Future<bool> getDeviceInfo() async {
try {
final result = await _channel.invokeMethod('getDeviceInfo');
return result == true;
} catch (e) {
print('Error getting device info: $e');
return false;
}
}