The last recommended approach is to assign a GlobalKey to the Scaffold. A key that is unique across the entire app . Global keys uniquely identify elements, provide access to other objects that are associated with elements, such as a BuildContext and, for StatefulWidgets, a State.16 Tem 2018
What is key in Scaffold?
The last recommended approach is to assign a GlobalKey to the Scaffold. A key that is unique across the entire app . Global keys uniquely identify elements, provide access to other objects that are associated with elements, such as a BuildContext and, for StatefulWidgets, a State.16 Tem 2018