fromValue static method
Implementation
static HMacOp fromValue(int value) => switch (value) {
0 => NC_HMAC_SHA1,
1 => NC_HMAC_MD5,
2 => NC_HMAC_SHA256,
3 => NC_HMAC_SHA384,
4 => NC_HMAC_SHA512,
5 => NC_HMAC_SHA224,
_ => throw ArgumentError("Unknown value for HMacOp: $value"),
};