currentContext static method

BuildContext currentContext()

Implementation

static BuildContext currentContext() {
  return _current?.innerContext ??
      illegalState("No app bootstrap has been invoked.  This "
          "cannot be invoked before the run method has been called");
}