isSupportedVersion static method

bool isSupportedVersion(
  1. int version
)

Checks to see if the supplied version is a valid QR code version

Implementation

static bool isSupportedVersion(int version) =>
    version == auto || (version >= min && version <= max);