callOnUpdate method

Future<void> callOnUpdate(
  1. int index,
  2. T item, {
  3. required bool skipDelay,
})

Implementation

Future<void> callOnUpdate(int index, T item,
    {required bool skipDelay}) async {
  /**
   * Wait till the data is initialized first!.
   */

  Duration? delay = betweenItemRenderDelay;
  if (delay != null && !skipDelay && isListReady) {
    await Future.delayed(delay, () => onUpdate(index, item));
  } else {
    onUpdate(index, item);
  }
}