handleSimpleNode method

void handleSimpleNode(
  1. NodeOutput item,
  2. State state,
  3. TraverseQueue levelQueue
)

Implementation

void handleSimpleNode(
    NodeOutput item, State state, TraverseQueue levelQueue) {
  var queue = state.queue;
  bool isInserted = processOrSkipNodeOnMatrix(item, state);
  if (isInserted) {
    queue.add(
        incomeId: item.id,
        bufferQueue: levelQueue,
        items: getOutcomesArray(item.id));
  }
}