loading static method

PaginatedSearchBarBuilderStateProperty loading(
  1. StatelessWidgetResolver builder
)

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

Implementation

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