Move

class Move<T>(val from: Int, val to: Int) : Patch<T>

A Patch saying, that an element has been moved from one position to another. This is only used on mounts with a corresponding IdProvider.

Parameters

from

old index of the element

to

new index of the element

Constructors

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

Properties

Link copied to clipboard
val from: Int
Link copied to clipboard
val to: Int

Functions

Link copied to clipboard
open override fun <R> map(parentJob: Job, mapping: (T, Job) -> R): Patch<R>

nothing to be mapped here...