DoxResponse constructor
DoxResponse(
- dynamic _contentData
content can be anything String, int, Map, json serializable object, Stream<List
Implementation
DoxResponse(this._contentData) {
if (_contentData is StreamFile) {
_contentType = _contentData.contentType;
}
if (_contentData is DownloadableFile) {
header(FILE_DOWNLOAD_HEADER, _contentData.contentDisposition);
_contentType = _contentData.contentType;
_contentData = _contentData.stream;
}
}