DeviceInfo.genericTablet constructor

DeviceInfo.genericTablet({
  1. required TargetPlatform platform,
  2. required String id,
  3. required String name,
  4. required Size screenSize,
  5. EdgeInsets safeAreas = EdgeInsets.zero,
  6. EdgeInsets rotatedSafeAreas = EdgeInsets.zero,
  7. double pixelRatio = 2.0,
  8. GenericTabletFramePainter framePainter = const GenericTabletFramePainter(),
})

Implementation

factory DeviceInfo.genericTablet({
  required TargetPlatform platform,
  required String id,
  required String name,
  required Size screenSize,
  EdgeInsets safeAreas = EdgeInsets.zero,
  EdgeInsets rotatedSafeAreas = EdgeInsets.zero,
  double pixelRatio = 2.0,
  GenericTabletFramePainter framePainter = const GenericTabletFramePainter(),
}) =>
    buildGenericTabletDevice(
      platform: platform,
      id: id,
      name: name,
      screenSize: screenSize,
      safeAreas: safeAreas,
      rotatedSafeAreas: rotatedSafeAreas,
      pixelRatio: pixelRatio,
      framePainter: framePainter,
    );