getDeviceInfo method
Get device information
Implementation
Future<Map<String, dynamic>> getDeviceInfo() async {
try {
return await _repository.getDeviceInfo();
} catch (e) {
if (e is MediaError) {
rethrow;
}
throw MediaErrorFactory.platformError(
platform: 'unknown',
message: 'Failed to get device info: ${e.toString()}',
code: 'DEVICE_INFO_FAILED',
);
}
}