package_version library

Classes

PackageVersion
A class that provides methods to fetch, store and validate the latest package version with reasonable caching.
PackageVersionConstants
Constants for the package version.
PackageVersionData
A class that holds the package version and the validity time that can be stored and retrieved from a local storage.
PubApiClient
A client for the pub.dev API.

Exceptions / Errors

VersionFetchException
An exception that is thrown when an error occurs during fetching the latest version.
VersionParseException
An exception that is thrown when an error occurs during parsing the version.