DeviceInstance constructor
DeviceInstance({
- required Device device,
Creates a new instance of DeviceInstance
Implementation
DeviceInstance({
required Device device,
}) : super(
name: 'Device',
properties: [
Property.string(
key: 'name',
value: device.name,
),
Property(
key: 'resolution',
instance: ResolutionInstance(
resolution: device.resolution,
),
),
Property(
key: 'type',
instance: DeviceTypeInstance(
deviceType: device.type,
),
),
],
);