AlfredUpdater constructor

AlfredUpdater({
  1. required Uri githubRepositoryUrl,
  2. required String currentVersion,
  3. Duration updateInterval = Duration.zero,
  4. AlfredCache<GithubRelease>? cache,
  5. 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 a Store
  • 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);