resolveFooterStateProperty function
EndlessStateProperty
resolveFooterStateProperty({
Implementation
EndlessStateProperty resolveFooterStateProperty({
required PaginatedSearchBarBuilderStateProperty? footerBuilderState,
required Widget? Function(BuildContext context)? footerBuilder,
required Set<PaginatedSearchBarState> searchBarStates,
}) {
return EndlessStateProperty.resolveWith(
(context, listStates) {
final newSearchBarStates = resolveSearchStates(
listStates: listStates,
isFocused: searchBarStates.contains(PaginatedSearchBarState.focused),
);
if (footerBuilderState != null) {
return footerBuilderState.resolve(
context,
newSearchBarStates,
);
} else if (footerBuilder != null) {
return footerBuilder(context);
}
},
);
}