DeviceInfo.genericDesktopMonitor constructor

DeviceInfo.genericDesktopMonitor({
  1. required TargetPlatform platform,
  2. required String id,
  3. required String name,
  4. required Size screenSize,
  5. required Rect windowPosition,
  6. EdgeInsets safeAreas = EdgeInsets.zero,
  7. double pixelRatio = 2.0,
  8. GenericDesktopMonitorFramePainter? framePainter,
})

Implementation

factory DeviceInfo.genericDesktopMonitor({
  required TargetPlatform platform,
  required String id,
  required String name,
  required Size screenSize,
  required Rect windowPosition,
  EdgeInsets safeAreas = EdgeInsets.zero,
  double pixelRatio = 2.0,
  GenericDesktopMonitorFramePainter? framePainter,
}) =>
    buildGenericDesktopMonitorDevice(
      platform: platform,
      id: id,
      name: name,
      screenSize: screenSize,
      windowPosition: windowPosition,
      safeAreas: safeAreas,
      pixelRatio: pixelRatio,
      framePainter: framePainter,
    );