Skip to main content

refresh_indicator

Function refresh_indicator 

Source
pub fn refresh_indicator<State, V, R>(
    child: V,
    on_refresh: R,
) -> RefreshIndicatorView<State>
where State: 'static, V: View<State>, R: Fn(&mut State) + 'static,
Expand description

Wrap child in a pull-to-refresh surface, firing on_refresh once per pull released past the baseline’s trigger. See the module docs for the controlled refreshing lifecycle contract.