tellStopped method

  1. @override
Future<List<Aria2Task>> tellStopped(
  1. int offset,
  2. int num
)
override

获取所有已停止的任务

Implementation

@override
Future<List<Aria2Task>> tellStopped(int offset, int num) async {
  var data = await _requestApi('aria2.tellStopped', [offset, num]);
  return data.map<Aria2Task>((dt) => Aria2Task.fromJson(dt)).toList();
}