DevicePreset constructor
const
DevicePreset({
- required String id,
- required String name,
- required TargetPlatform platform,
- required Size portraitSize,
- required double devicePixelRatio,
- String? brand,
- int? year,
- DeviceFrame? frame,
- SystemUiSimulation? systemUi,
- EdgeInsets portraitPadding = EdgeInsets.zero,
- EdgeInsets? portraitViewPadding,
- EdgeInsets? landscapePadding,
- EdgeInsets? landscapeViewPadding,
- EdgeInsets systemGestureInsets = EdgeInsets.zero,
- List<
SimulatedDisplayFeature> displayFeatures = const <SimulatedDisplayFeature>[], - DeviceKind kind = DeviceKind.phone,
Creates a device preset.
Implementation
const DevicePreset({
required this.id,
required this.name,
required this.platform,
required this.portraitSize,
required this.devicePixelRatio,
this.brand,
this.year,
this.frame,
this.systemUi,
this.portraitPadding = EdgeInsets.zero,
this.portraitViewPadding,
this.landscapePadding,
this.landscapeViewPadding,
this.systemGestureInsets = EdgeInsets.zero,
this.displayFeatures = const <SimulatedDisplayFeature>[],
this.kind = DeviceKind.phone,
});