addPostUpdateCallback static method

void addPostUpdateCallback(
  1. PostUpdateCallback callback
)

Schedule a callback to run after the current update cycle.

This method may only be called if isUpdating is true.

Implementation

static void addPostUpdateCallback(PostUpdateCallback callback) {
  assert(_isUpdating,
    'CellUpdateManager.addPostUpdateCallback called outside of a cell update cycle.'
  );

  _postUpdateCallbacks.add(callback);
}