updateMyLatLng method
Updates the current user's latitude and longitude
Implementation
void updateMyLatLng(HybridModel _myData) async {
if (etaFrom != null) {
_myData.eta = await _calculateEta(_myData);
}
_myData.marker = buildMarker(_myData, singleMarker: true);
myData = _myData;
var _index = hybridUsersList.indexWhere((element) =>
element!.displayName == AtLocationNotificationListener().currentAtSign);
if (_index < 0) {
if (addCurrentUserMarker!) {
hybridUsersList.add(myData);
}
} else {
hybridUsersList[_index] = myData;
}
if (!_atHybridUsersController.isClosed) {
_atHybridUsersController.add(hybridUsersList);
}
}