resolveLoadMoreBuilderToStateProperty function
Implementation
EndlessStateProperty resolveLoadMoreBuilderToStateProperty(
StatelessWidgetResolver? builder,
) {
return _resolveBuilderToStateProperty(
builder,
(StatelessWidgetResolver builder) =>
EndlessStateProperty.resolveWith((context, states) {
if (states.intersection({
EndlessState.done,
EndlessState.loading,
EndlessState.empty,
}).isEmpty) {
return builder(context);
}
return null;
}),
);
}