Device constructor
const
Device(
- String id,
- String label, {
- required DeviceKind kind,
- required DevicePlatform platform,
- required String group,
- required double width,
- required double height,
- required double pixelRatio,
- double insetTop = 0,
- double insetRight = 0,
- double insetBottom = 0,
- double insetLeft = 0,
- DeviceInsets? landscape,
- double keyboard = 0,
- double? landscapeKeyboard,
- double? keypadKeyboard,
- double? landscapeKeypadKeyboard,
Implementation
const Device(
this.id,
this.label, {
required this.kind,
required this.platform,
required this.group,
required this.width,
required this.height,
required this.pixelRatio,
this.insetTop = 0,
this.insetRight = 0,
this.insetBottom = 0,
this.insetLeft = 0,
this.landscape,
this.keyboard = 0,
this.landscapeKeyboard,
this.keypadKeyboard,
this.landscapeKeypadKeyboard,
});