getStream function

Future<ByteStream> getStream(
  1. Request request
)

Implementation

Future<ByteStream> getStream(Request request) async {
  final client = Client();
  StreamedResponse response = await client.send(request);
  return response.stream;
}