DisplayMode constructor

DisplayMode({
  1. required int width,
  2. required int height,
  3. required int widthInNativePixels,
  4. required int heightInNativePixels,
  5. double? uiScale,
  6. required double deviceScaleFactor,
  7. required double refreshRate,
  8. required bool isNative,
  9. required bool isSelected,
  10. bool? isInterlaced,
})

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,
      );