fetchMetrics method
GET https://pub.dev/api/packages/<name>/metrics — returns pub.dev's
score tags, including is:discontinued, is:null-safe, and
license:<spdx-id>, or null if unavailable.
Implementation
Future<Map<String, dynamic>?> fetchMetrics(String name) {
return _getJson('https://pub.dev/api/packages/$name/metrics');
}