merge method

void merge(
  1. KdbxCustomData other,
  2. bool otherIsNewer
)

Implementation

void merge(KdbxCustomData other, bool otherIsNewer) {
  // merge custom data
  for (final otherCustomDataEntry in other.entries) {
    if (otherIsNewer || !containsKey(otherCustomDataEntry.key)) {
      this[otherCustomDataEntry.key] = otherCustomDataEntry.value;
    }
  }
}