DisplayMode constructor
DisplayMode({})
Implementation
DisplayMode({
/// The display mode width in device independent (user visible) pixels.
required int width,
/// The display mode height in device independent (user visible) pixels.
required int height,
/// The display mode width in native pixels.
required int widthInNativePixels,
/// The display mode height in native pixels.
required int heightInNativePixels,
/// The display mode UI scale factor.
double? uiScale,
/// The display mode device scale factor.
required double deviceScaleFactor,
/// The display mode refresh rate in hertz.
required double refreshRate,
/// True if the mode is the display's native mode.
required bool isNative,
/// True if the display mode is currently selected.
required bool isSelected,
/// True if this mode is interlaced, false if not provided.
bool? isInterlaced,
}) : _wrapped = $js.DisplayMode(
width: width,
height: height,
widthInNativePixels: widthInNativePixels,
heightInNativePixels: heightInNativePixels,
uiScale: uiScale,
deviceScaleFactor: deviceScaleFactor,
refreshRate: refreshRate,
isNative: isNative,
isSelected: isSelected,
isInterlaced: isInterlaced,
);