PubApiClient class

A client for the pub.dev API.

Constructors

PubApiClient({Client? httpClient, Duration requestTimeout = const Duration(seconds: 2)})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
tryFetchLatestStableVersion(String packageName) Future<Version?>
Tries to fetch the latest stable version, version does not include '-' or '+', for the package named packageName.

Operators

operator ==(Object other) bool
The equality operator.
inherited