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