context property

BuildContext get context

Retrieves the current BuildContext from the navigatorKey.

Implementation

static BuildContext get context => navigatorKey.currentContext!;