hasUnit abstract method

bool hasUnit(
  1. String unit
)

Returns whether this has unit as its only unit (and as a numerator).

Implementation

bool hasUnit(String unit);