context property

BuildContext? context

Returns current root context. Default context set by framework don't have access to Scaffold. This context is also changed when AppState is changed.

Implementation

BuildContext? get context => _rootContext;
void context=(BuildContext? context)

Sets new root context. Typically set BuildContext with access to root Scaffold. This context is also changed when AppState is changed.

Implementation

set context(BuildContext? context) {
  _rootContext = context;
  printDebug('Root Context Changed: $context');
}