checkVersion method

void checkVersion(
  1. bool strict
)

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);
    }
  }
}