useContext function

  1. @Deprecated('Use KaeruWidget instead. This will be removed in a future version.')
BuildContext useContext()

Returns the BuildContext of the current widget.

Note: This is part of the deprecated defineWidget API.

Implementation

@Deprecated('Use KaeruWidget instead. This will be removed in a future version.')
BuildContext useContext() {
  return useState().context;
}