getDeviceInfo method
Implementation
@override
Future<DevicesInfoModel?> getDeviceInfo() async {
try {
final version = await methodChannel.invokeMethod<String>('getInformations');
return DevicesInfoModel.fromJson(jsonDecode(version!));
} catch (e) {
return null;
}
}