getUnit method
Returns the Unit with the corresponding name
Implementation
Unit getUnit(var name) {
return unitList.where((element) => element.name == name).single;
}
Returns the Unit with the corresponding name
Unit getUnit(var name) {
return unitList.where((element) => element.name == name).single;
}