SimpleAppUpgradeWidget constructor

const SimpleAppUpgradeWidget({
  1. Key? key,
  2. required String title,
  3. TextStyle? titleStyle,
  4. required List<String> contents,
  5. TextStyle? contentStyle,
  6. required String cancelText,
  7. TextStyle? cancelTextStyle,
  8. required String okText,
  9. TextStyle? okTextStyle,
  10. Widget? progressBar,
  11. required String downloadUrl,
  12. required String downloadApkName,
  13. bool force = false,
  14. VoidCallback? onCancel,
  15. VoidCallback? onOk,
  16. DownloadProgressCallback? downloadProgress,
  17. DownloadStatusChangeCallback? downloadStatusChange,
})

Implementation

const SimpleAppUpgradeWidget({Key? key, required this.title,
    this.titleStyle,
    required this.contents,
    this.contentStyle,
    required this.cancelText,
    this.cancelTextStyle,
    required this.okText,
    this.okTextStyle,
    this.progressBar,
    required this.downloadUrl,
    required this.downloadApkName,
    this.force = false,
    this.onCancel,
    this.onOk,
    this.downloadProgress,
    this.downloadStatusChange}):super(key: key);