callOnRemove method

Future<void> callOnRemove(
  1. int index, {
  2. required bool skipDelay,
})

Implementation

Future<void> callOnRemove(int index, {required bool skipDelay}) async {
  Duration? delay = betweenItemRenderDelay;
  if (delay != null && !skipDelay && isListReady) {
    await Future.delayed(delay, () => onRemove(index));
  } else {
    onRemove(index);
  }
}