UpdateState constructor

const UpdateState({
  1. Key? key,
  2. String title = 'Update required',
  3. String? message = 'A newer version of the app is available. Update to continue.',
  4. String updateLabel = 'Update now',
  5. String laterLabel = 'Later',
  6. VoidCallback? onUpdate,
  7. VoidCallback? onLater,
})

Implementation

const UpdateState({
  super.key,
  this.title = 'Update required',
  this.message =
      'A newer version of the app is available. Update to continue.',
  this.updateLabel = 'Update now',
  this.laterLabel = 'Later',
  this.onUpdate,
  this.onLater,
});