of static method

Finds the ancestor AppBarConnectionState from the closest instance of this class that encloses the given context.

Used by AppBar.

Implementation

static AppBarConnectionState? of(BuildContext context) {
  return context.findAncestorStateOfType<AppBarConnectionState>();
}