SentryDevice constructor

const SentryDevice({
  1. String? name,
  2. String? family,
  3. String? model,
  4. String? modelId,
  5. String? arch,
  6. double? batteryLevel,
  7. SentryOrientation? orientation,
  8. String? manufacturer,
  9. String? brand,
  10. String? screenResolution,
  11. int? screenHeightPixels,
  12. int? screenWidthPixels,
  13. double? screenDensity,
  14. int? screenDpi,
  15. bool? online,
  16. bool? charging,
  17. bool? lowMemory,
  18. bool? simulator,
  19. int? memorySize,
  20. int? freeMemory,
  21. int? usableMemory,
  22. int? storageSize,
  23. int? freeStorage,
  24. int? externalStorageSize,
  25. int? externalFreeStorage,
  26. DateTime? bootTime,
  27. String? timezone,
  28. String? language,
})

Implementation

const SentryDevice({
  this.name,
  this.family,
  this.model,
  this.modelId,
  this.arch,
  this.batteryLevel,
  this.orientation,
  this.manufacturer,
  this.brand,
  this.screenResolution,
  this.screenHeightPixels,
  this.screenWidthPixels,
  this.screenDensity,
  this.screenDpi,
  this.online,
  this.charging,
  this.lowMemory,
  this.simulator,
  this.memorySize,
  this.freeMemory,
  this.usableMemory,
  this.storageSize,
  this.freeStorage,
  this.externalStorageSize,
  this.externalFreeStorage,
  this.bootTime,
  this.timezone,
  this.language,
}) : assert(
        batteryLevel == null || (batteryLevel >= 0 && batteryLevel <= 100),
      );