isMinOlmVersion method

bool isMinOlmVersion(
  1. int major,
  2. int minor,
  3. int patch
)

Implementation

bool isMinOlmVersion(int major, int minor, int patch) {
  try {
    final version = olm.get_library_version();
    return version[0] > major ||
        (version[0] == major &&
            (version[1] > minor ||
                (version[1] == minor && version[2] >= patch)));
  } catch (_) {
    return false;
  }
}