isCompatible method

bool isCompatible(
  1. Version other
)

Whether another version is compatible with this one.

Implementation

bool isCompatible(Version other) => major == other.major;