digits property

int get digits

The number of digits.

Implementation

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