timeFrame property

  1. @computed
Timespan get timeFrame

Implementation

@computed
Timespan get timeFrame => range.value.duration < const Duration(hours: 24)
    ? Timespan.day
    : range.value.duration < const Duration(days: 7)
        ? Timespan.week
        : Timespan.month;