empty static method

PaginatedSearchBarBuilderStateProperty empty(
  1. StatelessWidgetResolver builder
)

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

Implementation

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