context property

BuildContext get context

note that this context will not be used to open dialogs or any navigation work

Implementation

static BuildContext get context => scaffoldKey.currentContext!;