timeRangeToString method
Implementation
String timeRangeToString(TimeRange timeRange) {
switch (timeRange) {
case TimeRange.last24Hours:
return "اخر ٢٤ ساعة";
case TimeRange.last72Hours:
return "اخر ٢٧ ساعة";
case TimeRange.lastWeek:
return "اخر اسبوع";
case TimeRange.currentWeek:
return "الاسبوع الحالي";
case TimeRange.currentMonth:
return "الشهر الحالي";
case TimeRange.lastMonth:
return "الشهر الماضي";
case TimeRange.currentYear:
return "العام الحالي";
case TimeRange.lastYear:
return "العام الماضي";
case TimeRange.customDate:
return "تاريخ مخصص";
}
}