listDownloads method
Download records for packageReference, newest first.
Implementation
@override
Future<List<DownloadRecord>> listDownloads(
String packageReference, {
int? limit,
DateTime? from,
DateTime? to,
}) async => _list(
await _call(StoreProtocol.downloadList, {
'packageReference': packageReference,
'limit': ?limit,
'from': ?from?.toIso8601String(),
'to': ?to?.toIso8601String(),
}),
DownloadRecord.fromJson,
);