Updater constructor

Updater({
  1. String? id,
  2. required BuildContext context,
  3. required String url,
  4. UpdaterController? controller,
  5. bool allowSkip = true,
  6. String? confirmText = 'Update',
  7. String? cancelText = 'Next Time',
  8. String? titleText = 'Update Available',
  9. String contentText = '',
  10. bool rootNavigator = true,
  11. dynamic callBack(
    1. UpdateModel
    )?,
  12. bool? backgroundDownload = true,
  13. double? elevation,
  14. Duration? delay,
  15. bool enableResume = true,
})

Implementation

Updater({
  this.id,
  required this.context,
  required this.url,
  this.controller,
  this.allowSkip = true,
  this.confirmText = 'Update',
  this.cancelText = 'Next Time',
  this.titleText = 'Update Available',
  this.contentText = '',
  this.rootNavigator = true,
  this.callBack,
  this.backgroundDownload = true,
  this.elevation,
  this.delay,
  this.enableResume = true,
}) : assert(url.contains('http') == true, "Update url is not valid!") {
  id ??= getRandomString(8);
}