PubClient class

Pub API Client

Constructors

PubClient({String? pubUrl, Credentials? credentials, Client? client, bool debug = false, String? userAgent})

Properties

debug bool
final
endpoint → Endpoint
final
hashCode int
The hash code for this object.
no setterinherited
pubUrl String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
documentation(String packageName) Future<PackageDocumentation>
Returns PackageDocumentation for a packageName
fetchFlutterFavorites() Future<List<String>>
Retrieves all the flutter favorites
fetchGooglePackages({List<String> tags = const []}) Future<List<String>>
Retrieves all Google packages from pub.dev Mostly used as an internal tool to generate google_packages_list.dart You should probably use that instead
fetchPublisherPackages(String publisherName, {List<String> tags = const []}) Future<List<PackageResult>>
likePackage(String name) Future<PackageLike>
Likes a package
likePackageStatus(String name) Future<PackageLike>
Displays like status of a package
listPackageLikes() Future<List<PackageLike>>
List package likes
nextPage(String nextPageUrl) Future<SearchResults>
Receives nextPageUrl returns SearchResults
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
packageInfo(String packageName) Future<PubPackage>
Returns the PubPackage information for packageName
packageMetrics(String packageName) Future<PackageMetrics?>
Returns the PackageMetrics for package packageName
packageNameCompletion() Future<List<String>>
Returns a List<String> of all packages listed on pub.dev
packageOptions(String packageName) Future<PackageOptions>
Returns the PackageOptions for package packageName
packagePublisher(String packageName) Future<PackagePublisher>
Returns the PackagePublisher for package packageName
packageScore(String packageName) Future<PackageScore>
Returns the PackageScore for package packageName
packageVersionInfo(String packageName, String version) Future<PackageVersion>
Returns PackageVersion of an specific packageName;
packageVersions(String packageName) Future<List<String>>
Returns a list of versions that are published for package packageName
Searches pub for query and can page results. Can specify tags to filter results. See PackageTag for details. returns SearchResults
toString() String
A string representation of this object.
inherited
unlikePackage(String name) Future<void>
Unlikes a package

Operators

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