stopTorrents method

Future<void> stopTorrents(
  1. List<int> ids
)

Stop torrents by given ids ids integer identifier list of the torrents to remove Throws TransmissionException if errors

Implementation

Future<void> stopTorrents(List<int> ids) async {
  final results = await _dio.post('/',
      data: _Request(methodStopTorrent, arguments: {
        'ids': ids,
      }).toJSON());
  _checkResults(_Response.fromJSON(results.data));
}