getDuration method

Duration getDuration()

Implementation

Duration getDuration() {
  switch (this) {
    case CachingStrategy.Weekly:
      return Duration(days: 7);
    case CachingStrategy.Monthly:
      return Duration(days: 30);
    default:
      return Duration.zero;
  }
}