PackageInfo constructor

const PackageInfo({
  1. required String name,
  2. bool installed = false,
  3. bool incomplete = true,
  4. bool preinstalled = false,
  5. bool compatible = false,
  6. bool hasUpdate = false,
  7. required PackageInfoError? error,
  8. PackageUpdateStatus updateStatus = PackageUpdateStatus.notAvailable,
  9. int? finalSizeOnDisk = null,
  10. int currentSizeOnDisk = 0,
})

Implementation

const PackageInfo({
  required this.name,
  this.installed = false,
  this.incomplete = true,
  this.preinstalled = false,
  this.compatible = false,
  this.hasUpdate = false,
  required this.error,
  this.updateStatus = PackageUpdateStatus.notAvailable,
  this.finalSizeOnDisk = null,
  this.currentSizeOnDisk = 0
});