isSI property

bool isSI

Returns true if this unit is a International System of Units (SI), commonly known as the Metric System.

Implementation

bool get isSI {
  switch (this) {
    case UnitLength.km:
    case UnitLength.m:
    case UnitLength.dm:
    case UnitLength.cm:
    case UnitLength.mm:
    case UnitLength.nm:
    case UnitLength.mic:
      return true;
    default:
      return false;
  }
}