pub_api_client library Null safety

Classes

Credentials
Credentials that prove that a client is allowed to access a resource on the resource owner's behalf. [...]
PackageDocumentation
Package Documentation Model
PackageDocumentationVersion
Package Documentation Version Model
PackageMetrics
Package Metrics Model
PackageOptions
Package Options Model
PackagePublisher
Package Publisher Model
PackageResult
Package Result Model returns within a SearchResult
PackageScore
Package Score Model
PackageScoreCard
Package Score Card Model
PackageVersion
Package Version Model
PubAuth
The pub client's OAuth2 secret. This isn't actually meant to be kept a secret. https://github.com/dart-lang/pub/blob/master/lib/src/oauth2.dart
PubClient
Pub API Client
PubPackage
Package Model
SearchResults
Search Results Model

Properties

credentialsFile File
Credentials json
read-only
kEnvVars Map<String, String>
final
pubCacheDir Directory
Directory for .pub-cache
read / write
pubCredentials Credentials?
read / write

Functions

buildFlutterFavorites() Future<List<String>>
Retrieves all the flutter favorites
buildGooglePackages() 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
getGooglePackages() Future<List<String>>
Retrieves google packages from static file that is generated daily
getPublisherPackages(String publisherName) Future<List<PackageResult>>
responseValidOrThrow(Response res) → void
If status code is an exception it will throw a PubClientException

Typedefs

FetchFunction = Future<Map<String, dynamic>> Function(String url)

Exceptions / Errors

BadRequestException
ForbiddenException
InternalServerError
NotFoundException
PubClientException
UnauthorizedException
UnknownException