DragUpdateResult

data class DragUpdateResult(val reordered: Boolean, val fromIndex: Int = -1, val toIndex: Int = -1)

Result of updating a drag gesture.

Constructors

Link copied to clipboard
constructor(reordered: Boolean, fromIndex: Int = -1, toIndex: Int = -1)

Properties

Link copied to clipboard

original index if reordered, or -1.

Link copied to clipboard

true if the card moved to a new index position during this drag update.

Link copied to clipboard

new index if reordered, or -1.