done static method

EndlessStateProperty done(
  1. StatelessWidgetResolver builder
)

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

Implementation

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