getContext static method

BuildContext getContext()

Provide current context from anywhere

Implementation

static BuildContext getContext() {
  return StackedService.navigatorKey!.currentState!.overlay!.context;
}