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