getContext static method

BuildContext? getContext(
  1. Widget widget
)

Gets the BuildContext

Implementation

static BuildContext? getContext(Widget widget) =>
    _statelessState[widget]?.context;