onWorkflowChanged method
Implementation
void onWorkflowChanged(Workflow workflow) {
final workflows = {...state.workflows};
workflows[workflow.nodeIdenfier] = workflow;
assert(!equals(workflows, state.workflows));
emit(state.copyWith(workflows: workflows));
}