digits property

int get digits

The number of digits.

Implementation

int get digits {
  switch (this) {
    case DurationMillisFormat.single:
      return 1;
    case DurationMillisFormat.double:
      return 2;
    case DurationMillisFormat.triple:
      return 3;
  }
}