wetransfer 0.2.0+1 wetransfer: ^0.2.0+1 copied to clipboard
A package that allows you to easily transfer files to WeTransfer and retrieve the trnasfer link.
WeTransfer for Flutter #
A Flutter package that allows upload and dowload files to Wetransfer.
How to create a new instance #
Create a new instance with :
WeTransferClient client = await WeTransferClient.create('<api_key>');
Example #
WeTransferClient client = await WeTransferClient.create('<api_key>');
Transfer transfer = await client.createTransfer(
myFiles, "Test transfer.");
await client.uploadFiles(transfer).forEach((state) =>
print('${state.file.name} : ${state.type}'));
String url = await client.finalizeTransfer(transfer);
client?.close();