fromName static method

Future<PubPackage> fromName(
  1. String name
)

Implementation

static Future<PubPackage> fromName(String name) async => fromJson(
    jsonDecode(await _http.get('https://pub.dev/api/packages/$name')));