Sensor constructor

const Sensor(
  1. {@required int key,
  2. String name,
  3. int type}
)

Implementation

const Sensor({
  @required this.key,
  this.name,
  this.type,
});