loading static method

EndlessStateProperty loading(
  1. StatelessWidgetResolver builder
)

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

Implementation

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