upperUnitFactor property

int get upperUnitFactor

Implementation

int get upperUnitFactor {
  switch (this) {
    case BaseUnit.millisecond:
      return Duration.millisecondsPerSecond;
    case BaseUnit.second:
      return Duration.secondsPerMinute;
    case BaseUnit.minute:
      return Duration.minutesPerHour;
    case BaseUnit.hour:
      return Duration.hoursPerDay;
  }
}