Device constructor

const Device({
  1. required double x,
  2. required double y,
  3. String name = 'Unknown',
  4. double fontVariant = 0,
})

Constructs a new instance of Device with specified dimensions and optional parameters.

Implementation

const Device({
  required double x,
  required double y,
  this.name = 'Unknown',
  this.fontVariant = 0,
}) : super(x, y);