Hash.parse constructor

Hash.parse(
  1. String hash
)

Implementation

Hash.parse(String hash) : hash = HEX.decode(hash) {
  if (hash.length != 2 * length) {
    throw ArgumentError('Invalid hash length');
  }
}