rememberPullToRefreshState

Creates and remembers a PullToRefreshState across recompositions.

This state object is responsible for managing the visual aspects of the refresh indicator, such as its position and animation. The logical isRefreshing state should be hoisted and managed separately.

Return

A remembered instance of PullToRefreshState.

Parameters

refreshThreshold

An optional pull progress threshold (0.0 ~ 1.0) representing the percentage of the full damped drag range required to trigger refresh. Default is 0.25 (25%). Lower values make refresh easier to trigger; higher values require a deeper pull. 0.0 triggers on any pull, however small.