unitToString static method

String? unitToString(
  1. Unit? unit
)

Returns a unit spelling corresponding to the type of unit

Implementation

static String? unitToString(Unit? unit) => _POSSIBLE_SPELLINGS[unit];