void terminate( )

Terminates this HTTP/2 stream in an un-normal way.

For normal termination, one can cancel the StreamSubscription from incoming.listen() and close the outgoing StreamSink.

Terminating this HTTP/2 stream will free up all resources associated with it locally and will notify the remote end that this stream is no longer used.

Source

/// Terminates this HTTP/2 stream in an un-normal way.
///
/// For normal termination, one can cancel the [StreamSubscription] from
/// `incoming.listen()` and close the `outgoing` [StreamSink].
///
/// Terminating this HTTP/2 stream will free up all resources associated with
/// it locally and will notify the remote end that this stream is no longer
/// used.
void terminate();