DeviceSizeInstance constructor

DeviceSizeInstance({
  1. required DeviceSize deviceSize,
})

Creates a new instance of DeviceSizeInstance

Implementation

DeviceSizeInstance({
  required DeviceSize deviceSize,
}) : super(
        name: 'DeviceSize',
        properties: [
          Property.double(key: 'height', value: deviceSize.height),
          Property.double(key: 'width', value: deviceSize.width),
        ],
      );