onNodesChanged method

void onNodesChanged(
  1. Nodes nodes, {
  2. bool disableEqualityCheck = false,
})

Implementation

void onNodesChanged(Nodes nodes, {bool disableEqualityCheck = false}) {
  if (!disableEqualityCheck) {
    assert(!const DeepCollectionEquality().equals(state.nodes, [...nodes]),
        'Nodes must be different');
  }
  emit(state.copyWith(nodes: [...nodes]));
}