AlfredUpdater constructor
AlfredUpdater({
- required Uri githubRepositoryUrl,
- required String currentVersion,
- Duration updateInterval = Duration.zero,
- AlfredCache<
GithubRelease> ? cache, - Client? client,
Builds an AlfredUpdater
- githubRepositoryUrl : The Uri of the workflow's Github repository
currentVersion
: The workflow's semver version- updateInterval : Optionally customize how often to automatically check for updates
- cache : Optionally customize the AlfredCache providing a
Cache
backed by aStore
- client : Optionally customize the http
Client
Implementation
AlfredUpdater({
required this.githubRepositoryUrl,
required String currentVersion,
this.updateInterval = Duration.zero,
this.cache,
this.client,
}) : assert(githubRepositoryUrl.host == 'github.com'),
_currentVersion = Version.parse(currentVersion);