downloadStats method
Aggregated download statistics for packageReference.
Implementation
@override
Future<DownloadStats> downloadStats(
String packageReference, {
DateTime? from,
DateTime? to,
}) async => StoreProtocol.decodeStats(
await _result(StoreProtocol.downloadStats, {
'packageReference': packageReference,
'from': ?from?.toIso8601String(),
'to': ?to?.toIso8601String(),
}),
);