StreamAttachment(this._stream, String contentType, {String? fileName}) { this.contentType = contentType; this.fileName = fileName; }