endCellUpdates static method

void endCellUpdates(
  1. bool wasUpdating
)

End a cell update cycle.

NOTE: The cell update cycle is only ended in wasUpdating was false. In general the same value should be passed for wasUpdating as was returned by beginCellUpdates.

This method may only be called if isUpdating is true.

Implementation

static void endCellUpdates(bool wasUpdating) {
  assert(_isUpdating,
    'CellUpdateManager.endCellUpdates called outside of a cell update cycle.'
  );

  if (!wasUpdating) {
    _isUpdating = false;
    _runPostUpdateCallbacks();
  }
}