downloadStats method

  1. @override
Future<DownloadStats> downloadStats(
  1. String packageReference, {
  2. DateTime? from,
  3. DateTime? to,
})
override

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(),
  }),
);