DisplayInfo constructor
const
DisplayInfo({
- required int widthPixels,
- required int heightPixels,
- required double density,
- required int densityDpi,
- required double refreshRate,
- required List<
double> supportedRefreshRates, - required bool isHdrSupported,
- required List<
String> supportedHdrTypes, - double? widthPoints,
- double? heightPoints,
- double? nativeScale,
- int? nativeWidthPixels,
- int? nativeHeightPixels,
- double? brightness,
- 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,
});