getByDayName method

List<String> getByDayName()

Implementation

List<String> getByDayName() {
  String daysString = data['BYDAY'] ?? '';
  List<String> daysList = daysString.split(',').map((e) => daysNames[e]!).toList();

  return daysList.isNotEmpty ? daysList : [daysNames[daysString]!];
}