clone method

  1. @override
StreamedRequest clone()
inherited

Returns a clone of this request.

Sub classes should override this, call super.clone() first to get the base clone, and then add fields specific to their implementation.

Implementation

@override
StreamedRequest clone() {
  throw UnsupportedError(
      'StreamedRequests cannot be cloned because the streamed body can only '
      'be read once.');
}