ReorderCallback typedef

ReorderCallback = void Function(Permutations permutations)

A callback function that is called when the items are reordered.

Implementations should apply the permutations to the collection of items.

final List<MyDataObject> items = <MyDataObject>[/* ... */];

void handleReorder(Permutations permutations) =>
  permutations.apply(items);

Implementation

typedef ReorderCallback = void Function(Permutations permutations);