Parameter constructor

Parameter({
  1. required String type,
  2. required double value,
  3. required String name,
  4. required String unit,
})

Creates a Parameter instance.

The API users typically do not create Parameter instances directly.

Parameters

  • type: Parameter type identifier (see PredefinedParameterTypeValues).
  • value: Numeric value of the parameter.
  • name: Parameter name translated to current SDK language.
  • unit: Unit of measurement for the parameter value.

Implementation

Parameter({
  required this.type,
  required this.value,
  required this.name,
  required this.unit,
});