Permutation class

A class that represents a single permutation (reordering) of an item.

The Permutation class holds information about an item being moved in a list or collection, tracking both its original position and its new position after the reordering operation.

Constructors

Permutation({required Key itemKey, required int from, required int to})

Properties

from int
The original position of the item before the permutation (reordering).
final
hashCode int
The hash code for this object.
no setterinherited
itemKey Key
A unique key representing the item being moved.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to int
The new position of the item after the permutation (reordering).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited