requireCompatibleWith method

void requireCompatibleWith(
  1. CreditContract other, {
  2. required String context,
})

Requires two specified contracts to agree where both carry metadata.

Implementation

void requireCompatibleWith(
  CreditContract other, {
  required String context,
}) {
  if (isSpecified && other.isSpecified && this != other) {
    throw ArgumentError(
      '$context connects incompatible credit contracts '
      '($configurationIdentity versus ${other.configurationIdentity}).',
    );
  }
}