previous property

Week get previous

Returns the Week previous to this.

Implementation

Week get previous {
  if (index != first.index) {
    return Week.values[index - 1];
  } else {
    return last;
  }
}