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,
  29. String? theme,
  30. int? processorCount,
  31. String? cpuDescription,
  32. double? processorFrequency,
  33. String? deviceType,
  34. String? batteryStatus,
  35. String? deviceUniqueIdentifier,
  36. bool? supportsVibration,
  37. bool? supportsAccelerometer,
  38. bool? supportsGyroscope,
  39. bool? supportsAudio,
  40. bool? supportsLocationService,
})

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,
  this.theme,
  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),
      );