getDeviceInfo method
Get connected device information
Implementation
@override
Future<DeviceInfo?> getDeviceInfo() async {
final result = await methodChannel.invokeMethod<Map<dynamic, dynamic>>(
'getDeviceInfo',
);
if (result == null) return null;
return DeviceInfo.fromMap(Map<String, dynamic>.from(result));
}