operator [] method

int operator [](
  1. dynamic key
)

Implementation

int operator [](key) {
  final unit = timeSpanUnitOf(key);
  return unit.get(this);
}