checkServerProtocolVersion method
Return true
if the server's protocol is compatible.
Implementation
bool checkServerProtocolVersion(Version version) {
final minVersion = Version.parse(PROTOCOL_VERSION);
final maxVersion = minVersion.nextBreaking;
return minVersion <= version && version < maxVersion;
}