Query properties are null while using shell gotoasync
await Shell.Current.GoToAsync($"userDetails?id={id}");
UserDetailsViewModel:
[QueryProperty("Id", "id")]
public class UserDetailsViewModel : BaseViewModel
{
private string _id;
public string Id
{
get => _id;
set => SetProperty(ref _id, value);
}
public UserDetailsViewModel(){
var x=Id;
}
}