@override
Future<PropertiesEntity?> getPropertyDetails(int index) async {
try {
final propertiesBox = await Hive.openBox(_propertyBox);
var list = await propertiesBox.get('propertyList');
list = await list.cast<PropertiesEntity>();
var propertyEntity = await propertiesBox.getAt(0);
debugPrint("fefef " + propertyEntity.toString());
return await propertyEntity;
} on CacheException catch (e) {
throw CacheException(e.message);
}
}