setUnit method

int setUnit(
  1. String unit
)

Implementation

int setUnit(String unit) => _setUnit(unit.codeUnitAt(0));