Move

data class Move(val from: Int, val to: Int)

Represents a move from one index in the old list to a new index in the updated list.

Used in DittoDiff.moves.

Constructors

Link copied to clipboard
constructor(from: Int, to: Int)

Properties

Link copied to clipboard
val from: Int

The index in the old list the item moved from.

Link copied to clipboard
val to: Int

The index in the new list the item moved to.