useContext function
Obtains the BuildContext of the building HookWidget.
Implementation
BuildContext useContext() {
final BuildContext? result = HookElement._current;
assert(result != null, '`useContext` can only be called during a HookWidget build() method.');
return result!;
}