Skip to content

Glossary: Flutter

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`.

Where the book teaches it

Related terms

setStateSnackBar