Device constructor

const Device({
  1. required Size size,
  2. double devicePixelRatio = 1.0,
  3. required String name,
  4. double textScale = 1.0,
  5. Brightness brightness = Brightness.light,
  6. EdgeInsets safeArea = const EdgeInsets.all(0),
})

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

Implementation

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