DeviceInfo.genericPhone constructor

DeviceInfo.genericPhone({
  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. GenericPhoneFramePainter framePainter = const GenericPhoneFramePainter(),
})

Implementation

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