reportSearchBarHeight method

void reportSearchBarHeight(
  1. double height
)

Calibrates the search bar collapse distance to the actual rendered height.

Called automatically by GlassLargeTitle after first layout when a searchBar widget is provided. You do not normally need to call this.

Implementation

void reportSearchBarHeight(double height) {
  if (height > 0 && height != _searchBarHeight) {
    _searchBarHeight = height;
    _updateState();
  }
}