close abstract method

  1. @override
Future<Uint8List> close()
override

Closes the consumer and calculates the hash.

This internally finalizes the consumer and calculates the hash over all the received data. Once done, the hash is returned, or an error thrown, if it failed. The returned future is the same as the on provided via hash.

After having been closed, no more streams can be added to the consumer. See StreamConsumer.close for more details.

Implementation

@override
Future<Uint8List> close();