parse static method

Unit? parse(
  1. String unit
)

Implementation

static Unit? parse(String unit) => unit.parseUnit();