SocketFileHandler<ResponseType> constructor
const
SocketFileHandler<ResponseType> ({})
A common interface for any plugin that wants to handle file uploads using a socket client.
path, method, headers, body are request parameters
Implementation
const SocketFileHandler({
required super.file,
required this.path,
this.method = kFileUploadMethod,
this.headers,
this.body,
this.fileKey = kFileKey,
this.headersCallback,
this.fileParser = kChunkParser,
});