onNodesChanged method
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]));
}