consume method

Future<HashDigest> consume(
  1. Stream<List<int>> stream
)

Consumes the entire stream of byte array and generates a HashDigest.

Implementation

@pragma('vm:prefer-inline')
Future<HashDigest> consume(Stream<List<int>> stream) {
  return bind(stream).first;
}