checkVersion method
Implementation
void checkVersion(bool strict) {
if (version != VERSION) {
String message = "Wrong version, expected $VERSION, got $version";
if (!strict) {
ShpLogger().i(message);
} else {
throw StateError(message);
}
}
}