PubClient class
Pub API Client
Constructors
- PubClient({String? pubUrl, Credentials? credentials, Client? client, bool debug = false, String? userAgent})
Properties
Methods
-
close(
) → void -
documentation(
String packageName) → Future< PackageDocumentation> -
Returns
PackageDocumentation
for apackageName
-
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
returnsSearchResults
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
packageInfo(
String packageName) → Future< PubPackage> -
Returns the
PubPackage
information forpackageName
-
packageMetrics(
String packageName) → Future< PackageMetrics?> -
Returns the
PackageMetrics
for packagepackageName
-
packageNameCompletion(
) → Future< List< String> > -
Returns a
List<String>
of all packages listed on pub.dev -
packageOptions(
String packageName) → Future< PackageOptions> -
Returns the
PackageOptions
for packagepackageName
-
packagePublisher(
String packageName) → Future< PackagePublisher> -
Returns the
PackagePublisher
for packagepackageName
-
packageScore(
String packageName) → Future< PackageScore> -
Returns the
PackageScore
for packagepackageName
-
packageVersionInfo(
String packageName, String version) → Future< PackageVersion> -
Returns
PackageVersion
of an specificpackageName
; -
packageVersions(
String packageName) → Future< List< String> > -
Returns a list of versions that are published for package
packageName
-
search(
String query, {int page = 1, SearchOrder sort = SearchOrder.top, List< String> tags = const [], List<String> topics = const []}) → Future<SearchResults> -
Searches pub for
query
and canpage
results. Can specifytags
to filter results. See PackageTag for details. returnsSearchResults
-
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