Device constructor
const
Device({
- required Size size,
- double devicePixelRatio = 1.0,
- required String name,
- double textScale = 1.0,
- Brightness brightness = Brightness.light,
- 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),
});