onWorkflowChanged method

void onWorkflowChanged(
  1. Workflow workflow
)

Implementation

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