BaseUnit constructor
BaseUnit({})
Constructor for BaseUnit.
Implementation
BaseUnit({
required super.code,
required super.codeUC,
required super.property,
required this.dim,
super.isMetric,
String? name,
List<String>? synonyms,
super.printSymbol,
}) : super(
kind: ConceptKind.baseUnit,
names: name != null || (synonyms != null && synonyms.isNotEmpty)
? <String>[
if (name != null) name,
if (synonyms != null && synonyms.isNotEmpty) ...synonyms
]
: null);