simc / dartx

Superpowers for Dart. Collection of useful static extension methods.
https://pub.dev/packages/dartx
Apache License 2.0
1.08k stars 88 forks source link

`move` methods on `List` #164

Open robiness opened 1 year ago

robiness commented 1 year ago

Working with reorderable lists like reorderables or ReorderableListView there often is a callback like void onReorder(int oldIndex, int newIndex)

Would it make sense to you to add something like it's done here?

Especially the move and moveAt methods would be nice little helpers in that scenario.

passsy commented 1 year ago

Really like the move methods! Let the PRs fly in :)