removeTorrents method Null safety

Future<void> removeTorrents(
  1. List<int> ids,
  2. {bool deleteLocalData = false}
)

Remove torrents by their given ids ids integer identifier list of the torrents to remove deleteLocalData boolean to also delete local data, default false Throws TransmissionException if errors

Implementation

Future<void> removeTorrents(
  List<int> ids, {
  bool deleteLocalData = false,
}) async {
  final results = await _dio.post('/',
      data: _Request(methodRemoveTorrent, arguments: {
        'ids': ids,
        'delete-local-data': deleteLocalData,
      }).toJSON());
  _checkResults(_Response.fromJSON(results.data));
}