sameDiversion method
Implementation
bool sameDiversion(Node other) {
if (nodeType != FlowApprovalType.diversionApproval ||
other.nodeType != FlowApprovalType.diversionApproval) {
return false;
}
if ((conditionMap?.isEmpty ?? true) ||
(other.conditionMap?.isEmpty ?? true)) {
return false;
}
var result = false;
conditionMap?.forEach((key, value) {
result = result || other.conditionMap?[key] == value;
});
return result;
}