get method

int get(
  1. TimeSpan span
)

Implementation

int get(TimeSpan span) {
  switch (this) {
    case TimeSpanUnit.microsecond:
      return span.micros;
    case TimeSpanUnit.millisecond:
      return span.millis;
    case TimeSpanUnit.second:
      return span.seconds;
    default:
      return span._values[this!.index].toIntSafe();
  }
}