passthroughChip function
Widget
passthroughChip({
- required BuildContext context,
- required String? latestVersion,
- required String appVersion,
- required UpdatStatus status,
- required void checkForUpdate(),
- required void openDialog(),
- required void startUpdate(),
- required Future<
void> launchInstaller(), - required void dismissUpdate(),
- required dynamic 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,
- required Function setFunctions,
Implementation
Widget passthroughChip({
required BuildContext context,
required String? latestVersion,
required String appVersion,
required UpdatStatus status,
required void Function() checkForUpdate,
required void Function() openDialog,
required void Function() startUpdate,
required Future<void> Function() launchInstaller,
required void Function() dismissUpdate,
required Function({
required BuildContext context,
required String? latestVersion,
required String appVersion,
required UpdatStatus status,
required void Function() checkForUpdate,
required void Function() openDialog,
required void Function() startUpdate,
required Future<void> Function() launchInstaller,
required void Function() dismissUpdate,
})?
updateChipBuilder,
required Function setFunctions,
}) {
setFunctions(
checkForUpdate,
openDialog,
startUpdate,
launchInstaller,
dismissUpdate,
);
return updateChipBuilder?.call(
context: context,
latestVersion: latestVersion,
appVersion: appVersion,
status: status,
checkForUpdate: checkForUpdate,
openDialog: openDialog,
startUpdate: startUpdate,
launchInstaller: launchInstaller,
dismissUpdate: dismissUpdate,
) ??
defaultChip(
context: context,
latestVersion: latestVersion,
appVersion: appVersion,
status: status,
checkForUpdate: checkForUpdate,
openDialog: openDialog,
startUpdate: startUpdate,
launchInstaller: launchInstaller,
dismissUpdate: dismissUpdate,
);
}