showUpdateDialog<T> function

Future showUpdateDialog<T>(
  1. BuildContext context, {
  2. required DesktopUpdaterController controller,
  3. Color? backgroundColor,
  4. Color? iconColor,
  5. Color? shadowColor,
})

Shows an update dialog.

Implementation

Future showUpdateDialog<T>(
  BuildContext context, {
  required DesktopUpdaterController controller,
  Color? backgroundColor,
  Color? iconColor,
  Color? shadowColor,
}) {
  return showDialog(
    context: context,
    // barrierDismissible: controller.isMandatory == false,
    builder: (context) {
      return UpdateDialogWidget(
        controller: controller,
        backgroundColor: backgroundColor,
        iconColor: iconColor,
        shadowColor: shadowColor,
      );
    },
  );
}