DeviceInfo constructor
const
DeviceInfo({
- required DeviceIdentifier identifier,
- required String name,
- @Default(null) EdgeInsets? rotatedSafeAreas,
- required EdgeInsets safeAreas,
- required Path screenPath,
- required double pixelRatio,
- required String svgFrame,
- required Size frameSize,
- required Size screenSize,
Create a new device info.
Implementation
const factory DeviceInfo({
/// Identifier of the device.
required DeviceIdentifier identifier,
/// The display name of the device.
required String name,
/// The safe areas when the device is in landscape orientation.
@Default(null) EdgeInsets? rotatedSafeAreas,
/// The safe areas when the device is in portrait orientation.
required EdgeInsets safeAreas,
/// A shape representing the screen.
required Path screenPath,
/// The screen pixel density of the device.
required double pixelRatio,
/// The safe areas when the device is in portrait orientation.
required String svgFrame,
/// The frame size in pixels.
required Size frameSize,
/// The size in points of the screen content.
required Size screenSize,
}) = _DeviceInfo;