fromValue static method

HashOp fromValue(
  1. int value
)

Implementation

static HashOp fromValue(int value) => switch (value) {
      0 => NC_MD5,
      1 => NC_SHA1,
      2 => NC_SHA224,
      3 => NC_SHA256,
      4 => NC_SHA384,
      5 => NC_SHA512,
      _ => throw ArgumentError("Unknown value for HashOp: $value"),
    };