isNewerThan method

bool isNewerThan(
  1. BridgeProtocolVersion other
)

Check if this version is strictly newer than other.

Implementation

bool isNewerThan(BridgeProtocolVersion other) {
  if (major != other.major) return major > other.major;
  if (minor != other.minor) return minor > other.minor;
  return patch > other.patch;
}