createHybridFromLocationDataModel method
void
createHybridFromLocationDataModel()
Creates HybridModels from LocationDataModel and updates the allReceivedUsersSink
Implementation
void createHybridFromLocationDataModel() async {
await Future.forEach(_locationReceivedData.entries,
(MapEntry<String, LocationDataModel> _locationData) async {
var _image = await getImageOfAtsignNew(_locationData.value.sender);
var _user = HybridModel(
displayName: _locationData.value.sender,
latLng: _locationData.value.getLatLng,
image: _image,
eta: '?');
_allReceivedUsersList[_locationData.key] = _user;
});
allReceivedUsersSink.add(_allReceivedUsersList);
}