Unstyled Anchored Draggable State
Construct an UnstyledAnchoredDraggableState instance with anchors.
Parameters
The initial value of the state.
The anchors of the state. Use updateAnchors to update the anchors later.
The default animation spec that will be used to animate to a new state.
The animation spec that will be used when flinging with a large enough velocity to reach or cross the target state.
Optional callback invoked to confirm or veto a pending state change.
The positional threshold, in px, to be used when calculating the target state while a drag is in progress and when settling after the drag ends. This is the distance from the start of a transition. It will be, depending on the direction of the interaction, added or subtracted from/to the origin offset. It should always be a positive value.
The velocity threshold (in px per second) that the end velocity has to exceed in order to animate to the next state, even if the positionalThreshold has not been reached.
Parameters
The initial value of the state.
The positional threshold, in px, to be used when calculating the target state while a drag is in progress and when settling after the drag ends. This is the distance from the start of a transition. It will be, depending on the direction of the interaction, added or subtracted from/to the origin offset. It should always be a positive value.
The velocity threshold (in px per second) that the end velocity has to exceed in order to animate to the next state, even if the positionalThreshold has not been reached.
The default animation spec that will be used to animate to a new state.
The animation spec that will be used when flinging with a large enough velocity to reach or cross the target state.
Optional callback invoked to confirm or veto a pending state change.