empty static method

EndlessStateProperty empty(
  1. StatelessWidgetResolver builder
)

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

Implementation

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