FetchData.fromStream constructor

FetchData.fromStream(
  1. Stream<List<int>> stream, {
  2. String mimeType = 'application/octet-stream',
})

Use the stream as the source of the FetchData to send. The mimeType defaults to application/octet-stream

Implementation

FetchData.fromStream(Stream<List<int>> stream,
    {String mimeType = 'application/octet-stream'})
    : _stream = stream,
      _type = _FetchDataType.stream,
      _mimeType = mimeType;