forBits static method
@param bits int containing the two bits encoding a QR Code's error correction level @return ErrorCorrectionLevel representing the encoded error correction level
Implementation
static ErrorCorrectionLevel forBits(int bits) {
if (bits < 0 || bits >= _forBits.length) {
throw ArgumentError();
}
return _forBits[bits];
}