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. int? screenHeightPixels,
  11. int? screenWidthPixels,
  12. double? screenDensity,
  13. int? screenDpi,
  14. bool? online,
  15. bool? charging,
  16. bool? lowMemory,
  17. bool? simulator,
  18. int? memorySize,
  19. int? freeMemory,
  20. int? usableMemory,
  21. int? storageSize,
  22. int? freeStorage,
  23. int? externalStorageSize,
  24. int? externalFreeStorage,
  25. DateTime? bootTime,
  26. int? processorCount,
  27. String? cpuDescription,
  28. double? processorFrequency,
  29. String? deviceType,
  30. String? batteryStatus,
  31. String? deviceUniqueIdentifier,
  32. bool? supportsVibration,
  33. bool? supportsAccelerometer,
  34. bool? supportsGyroscope,
  35. bool? supportsAudio,
  36. bool? supportsLocationService,
})

Implementation

const SentryDevice({
  this.name,
  this.family,
  this.model,
  this.modelId,
  this.arch,
  this.batteryLevel,
  this.orientation,
  this.manufacturer,
  this.brand,
  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.processorCount,
  this.cpuDescription,
  this.processorFrequency,
  this.deviceType,
  this.batteryStatus,
  this.deviceUniqueIdentifier,
  this.supportsVibration,
  this.supportsAccelerometer,
  this.supportsGyroscope,
  this.supportsAudio,
  this.supportsLocationService,
}) : assert(
        batteryLevel == null || (batteryLevel >= 0 && batteryLevel <= 100),
      );