Signature for a step callback with oldIndex and index.
typedef StepCallback = FutureOr<void> Function(int oldIndex, int index);