willClear static method

EndlessStateProperty willClear(
  1. StatelessWidgetResolver builder
)

Resolves the given builder if the scroll view will clear its current items on next load.

Implementation

static EndlessStateProperty willClear(StatelessWidgetResolver builder) =>
    EndlessStateProperty(
      (BuildContext context) =>
          StateProperty.resolveState<EndlessState, Widget?>(
        () => builder(context),
        EndlessState.willClear,
      ),
    );