torrentAdd abstract method

Future<TorrentAddResponse> torrentAdd(
  1. TorrentAddRequestArgs args, {
  2. RpcTag? tag,
  3. int? timeout,
})

Adding a torrent. more info see: torrent-add

TorrentAddFileInfo should only set filename or metainfo, only filename will take effect if both are set;

resonse TorrentAddResponseParam.isDuplicated will be true when attempting to add a duplicate torrent;

Implementation

Future<TorrentAddResponse> torrentAdd(TorrentAddRequestArgs args,
    {RpcTag? tag, int? timeout});