equal method

bool equal(
  1. Envelope? other
)

Returns true if the other Envelope has the same public key, payload, payload type, and signature.

Implementation

bool equal(Envelope? other) {
  if (other == null) return false;
  return _bytesEqual(payloadType, other.payloadType) &&
      _bytesEqual(_signature, other._signature) &&
      _bytesEqual(rawPayload, other.rawPayload);
}