getDayPartName method

String getDayPartName({
  1. required DayParts dayPart,
})

Implementation

String getDayPartName({required DayParts dayPart}) {
  return dayPart.toString().split('.').last;
}