focused static method

PaginatedSearchBarBuilderStateProperty focused(
  1. StatelessWidgetResolver builder
)

Resolves the given builder if the scroll view is currently in the searching state.

Implementation

static PaginatedSearchBarBuilderStateProperty focused(
        StatelessWidgetResolver builder) =>
    PaginatedSearchBarBuilderStateProperty(
      (BuildContext context) =>
          StateProperty.resolveState<PaginatedSearchBarState, Widget>(
        () => builder(context),
        PaginatedSearchBarState.focused,
      ),
    );