useContext function

BuildContext useContext()

Retrieves the current BuildContext from the KaeruWidget.

This function must be called within a KaeruWidget.

Implementation

BuildContext useContext() {
  final kaeru = useKaeruContext();
  assert(kaeru != null, 'useContext must be called within a KaeruWidget');

  return kaeru!.context;
}