pub fn PullToRefresh(
state: Rc<PullToRefreshState>,
modifier: Modifier,
on_refresh: Rc<dyn Fn()>,
content: View,
config: PullToRefreshConfig,
) -> ViewExpand description
Wraps scrollable content with a pull-to-refresh indicator.
Renders a small spinner at the top when the user pulls down past a threshold, or shows the current pull offset as a visual indicator.
The state must be connected to a ScrollState
via set_scroll_state for the pull
offset to be derived from the scroll overscroll automatically.