getDeviceInfo method

  1. @override
Future<DeviceInfo?> getDeviceInfo()
override

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));
}