getDeviceInfo method
Implementation
@override
Future<DeviceInfoEntity?> getDeviceInfo() async {
Map<dynamic, dynamic>? info = await methodChannel
.invokeMethod<Map<dynamic, dynamic>>(MethodCallName.getDeviceInfo);
if (info != null) {
return DeviceInfoEntity.fromJson(info);
}
return null;
}