It seems that now they're using context.mounted again. I get the same error message when I use if(mounted).
context.mounted
if(mounted)