What does "??" means in productList: productList ?? _productList, ?
In general case If you pass productList it will be shown or else _productList will be shown
I'm sorry I missed this message, I wouldn't have seen it had someone not reply. i hope their response was helpful.
to add to it:
it's a shorthand ternary operator
productList = productList != null ? productList : _productList;
I hope this helps. once again, apologies for the late response
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What does "??" means in
productList: productList ?? _productList,
?
In general case
If you pass productList it will be shown
or else _productList will be shown
I'm sorry I missed this message, I wouldn't have seen it had someone not reply.
i hope their response was helpful.
to add to it:
it's a shorthand ternary operator
productList = productList != null ? productList : _productList;
I hope this helps.
once again, apologies for the late response