Device constructor

const Device({
  1. required Size size,
  2. required String name,
  3. DisplaySize displaySize = DisplaySize.sixOne,
  4. required DevicePlatform platform,
  5. double devicePixelRatio = 1.0,
  6. double textScale = 1.0,
  7. Brightness brightness = Brightness.light,
  8. EdgeInsets safeArea = const EdgeInsets.all(0),
  9. double screenCornerRadius = 0,
  10. DeviceType? type,
})

This Device is a configuration for golden test. Can be provided for multiScreenGolden

Implementation

const Device({
  required this.size,
  required this.name,
  this.displaySize = DisplaySize.sixOne,
  required this.platform,
  this.devicePixelRatio = 1.0,
  this.textScale = 1.0,
  this.brightness = Brightness.light,
  this.safeArea = const EdgeInsets.all(0),
  this.screenCornerRadius = 0,
  this.type,
});