getDeviceInfo method
Implementation
@override
Future<DeviceInfo> getDeviceInfo() async {
final map = await methodChannel.invokeMapMethod<dynamic, dynamic>('getDeviceInfo');
if (map == null) {
throw PlatformException(
code: 'NULL_RESPONSE',
message: 'getDeviceInfo returned null',
);
}
return DeviceInfo.fromMap(map);
}