Updater constructor
Updater({
- String? id,
- required BuildContext context,
- required String url,
- UpdaterController? controller,
- bool allowSkip = true,
- String? confirmText = 'Update',
- String? cancelText = 'Next Time',
- String? titleText = 'Update Available',
- String contentText = '',
- dynamic callBack()?,
- bool? backgroundDownload = true,
- double? elevation,
- Duration? delay,
- 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);
}