Stream<List<int>> finalize() { if (isFinalized) { throw StateError("Can't finalize a finalized MultipartFile."); } _isFinalized = true; return _stream; }