hashSync method

Hash hashSync(
  1. List<int> data
)

Synchronous version of hash().

Implementation

Hash hashSync(List<int> data) {
  ArgumentError.checkNotNull(data);
  var sink = newHashSink();
  sink.add(data);
  sink.close();
  return sink.hashSync();
}