Device constructor

const Device(
  1. String id,
  2. String label, {
  3. required DeviceKind kind,
  4. required DevicePlatform platform,
  5. required String group,
  6. required double width,
  7. required double height,
  8. required double pixelRatio,
  9. double insetTop = 0,
  10. double insetRight = 0,
  11. double insetBottom = 0,
  12. double insetLeft = 0,
  13. DeviceInsets? landscape,
  14. double keyboard = 0,
  15. double? landscapeKeyboard,
  16. double? keypadKeyboard,
  17. 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,
});