Updater class
Constructors
- 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(UpdateModel)?, bool? backgroundDownload = true, double? elevation, Duration? delay, bool enableResume = true})
Properties
- allowSkip ↔ bool
-
Allow the dialog to cancel or skip
This also control the
barrierDismissible
property of dialog Default isallowSkip = true
getter/setter pair - backgroundDownload → bool?
-
set
backgroundDownload
value to show or hide background download button Default isbackgroundDownload = true
final - callBack ↔ dynamic Function(UpdateModel)?
-
Callback, which returns JSON data
getter/setter pair
- cancelText → String?
-
Set cancel button text
final
- confirmText → String?
-
Set confirm button text
final
- contentText ↔ String
-
Change update dialog content text
getter/setter pair
- context → BuildContext
-
Build Context
final
- controller → UpdaterController?
-
UpdaterController to handle callbacks
final
- delay → Duration?
-
This will add delay when checking for an update.
final
- elevation → double?
-
Add elevation to dialog.
final
- enableResume → bool
-
Enable or disable resume feature.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
Unique id of download process
getter/setter pair
-
Set rootNavigator value to dismiss dialog
Default is
rootNavigator = true
final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- titleText → String?
-
Set update dialog title text
final
- url → String
-
Json file url to check for update
final
Methods
-
check(
{dynamic withDialog = true}) → Future< bool> - Function to check for update
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- platform ↔ Platform
-
getter/setter pair