setContext static method

void setContext(
  1. BuildContext context
)

Assign a new context to the current context. Called when the context changes, such as during navigation. Use this method to update the context when navigating to a new screen.

Implementation

static void setContext(BuildContext context) {
  _currentContext = context;
  NLogger.d("Nudge current context updated: $_currentContext");
}