DisplayInfo constructor

const DisplayInfo({
  1. required int widthPixels,
  2. required int heightPixels,
  3. required double density,
  4. required int densityDpi,
  5. required double refreshRate,
  6. required List<double> supportedRefreshRates,
  7. required bool isHdrSupported,
  8. required List<String> supportedHdrTypes,
  9. double? widthPoints,
  10. double? heightPoints,
  11. double? nativeScale,
  12. int? nativeWidthPixels,
  13. int? nativeHeightPixels,
  14. double? brightness,
  15. bool isIosNative = false,
})

Creates a display information description.

Implementation

const DisplayInfo({
  required this.widthPixels,
  required this.heightPixels,
  required this.density,
  required this.densityDpi,
  required this.refreshRate,
  required this.supportedRefreshRates,
  required this.isHdrSupported,
  required this.supportedHdrTypes,
  this.widthPoints,
  this.heightPoints,
  this.nativeScale,
  this.nativeWidthPixels,
  this.nativeHeightPixels,
  this.brightness,
  this.isIosNative = false,
});