context.mounted
Also written: mounted
A check that a widget is still on screen. After an `await`, the customer may have left the screen, so check `mounted` before using `context` or `setState`.
Also written: mounted
A check that a widget is still on screen. After an `await`, the customer may have left the screen, so check `mounted` before using `context` or `setState`.