CustomDeviceInfoData class

Info about a device and its frame.

Annotations
  • @freezed

Constructors

CustomDeviceInfoData({required String id, required DeviceType type, required TargetPlatform platform, required String name, @Default.new(null) @NullableEdgeInsetsJsonConverter.new() EdgeInsets? rotatedSafeAreas, @EdgeInsetsJsonConverter.new() required EdgeInsets safeAreas, required double pixelRatio, @SizeJsonConverter.new() required Size screenSize})
Create a new device info.
const
factory
CustomDeviceInfoData.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $CustomDeviceInfoDataCopyWith<CustomDeviceInfoData>
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
Identifier of the device.
no setterinherited
name → String
The display name of the device.
no setterinherited
pixelRatio → double
The screen pixel density of the device.
no setterinherited
platform → TargetPlatform
The device operating system.
no setterinherited
rotatedSafeAreas → EdgeInsets?
The safe areas when the device is in landscape orientation.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
safeAreas → EdgeInsets
The safe areas when the device is in portrait orientation.
no setterinherited
screenSize → Size
The size in points of the screen content.
no setterinherited
type → DeviceType
The device type.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited