getDeviceInfo method
get Android/IOS/MacOS Device Info
Implementation
Future<DeviceInfoModel?> getDeviceInfo() async {
if (!Internal.supportPlatform) return null;
final Map<String, dynamic>? map = await Internal.curiosityChannel
.invokeMapMethod<String, dynamic>('getDeviceInfo');
if (map != null) return DeviceInfoModel.fromJson(map);
return null;
}