getPartByString static method

dynamic getPartByString({
  1. required PartFormat format,
  2. required HeaderOptions options,
})

Implementation

static getPartByString(
    {required PartFormat format, required HeaderOptions options}) {
  return Translator.getPartTranslate(options, format,
      TimelineCalendar.calendarProvider.getDateTimePart(format) - 1);
}