UpdatWidget constructor
const
UpdatWidget({
- required String currentVersion,
- required Future<
String?> getLatestVersion(), - required Future<
String> getBinaryUrl(- String? latestVersion
- required String appName,
- Future<
File> getDownloadFileLocation(- String? latestVersion
- Widget updateChipBuilder({
- required String appVersion,
- required void checkForUpdate(),
- required BuildContext context,
- required void dismissUpdate(),
- required String? latestVersion,
- required Future<
void> launchInstaller(), - required void openDialog(),
- required void startUpdate(),
- required UpdatStatus status,
- void updateDialogBuilder({
- required String appVersion,
- required String? changelog,
- required void checkForUpdate(),
- required BuildContext context,
- required void dismissUpdate(),
- required String? latestVersion,
- required Future<
void> launchInstaller(), - required void openDialog(),
- required void startUpdate(),
- required UpdatStatus status,
- Future<
String?> getChangelog()?, - void callback(
- UpdatStatus status
- bool openOnDownload = true,
- bool closeOnInstall = false,
- Key? key,
Implementation
const UpdatWidget({
required this.currentVersion,
required this.getLatestVersion,
required this.getBinaryUrl,
required this.appName,
this.getDownloadFileLocation,
this.updateChipBuilder,
this.updateDialogBuilder,
this.getChangelog,
this.callback,
this.openOnDownload = true,
this.closeOnInstall = false,
Key? key,
}) : super(key: key);