of static method

Implementation

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