move method

Future move(
  1. int index, {
  2. bool animation = true,
})

Implementation

Future move(int index, {bool animation = true}) {
  final e = event = MoveIndexControllerEvent(
    animation: animation,
    newIndex: index,
    oldIndex: this.index,
  );
  notifyListeners();
  return e.future;
}