moveList method
Reorders a list
Implementation
void moveList({
required int fromIndex,
required int toIndex,
}) {
if (fromIndex >= 0 && fromIndex < _lists.length &&
toIndex >= 0 && toIndex <= _lists.length) {
final list = _lists.removeAt(fromIndex);
_lists.insert(toIndex, list);
// Notify about the list reorder
_callbacks?.onListReorder?.call(fromIndex, toIndex);
notifyListeners();
}
}