done property

Future<void> get done

A Future that completes when the transport is closed, or when an error occurs. After this Future completes, isClosed will be true and no more data can be sent or received.

Implementation

Future<void> get done => _doneCompleter.future;