DeviceInfo.genericPhone constructor
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(),
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,
);