isUnit method

bool isUnit (
  1. String unitString
)

True if unit is unitString

Implementation

bool isUnit(String unitString) => unit?.isUnit(unitString) ?? false;