Unit constructor

Unit(
  1. dynamic name, {
  2. double? value,
  3. String? stringValue,
  4. String? symbol,
})

The class that defines a unit of measurement object.

Implementation

Unit(this.name, {this.value, this.stringValue, this.symbol});