ConditionalFormat.timePeriod constructor

ConditionalFormat.timePeriod(
  1. String period, {
  2. required CellStyle style,
})

Highlight dates falling in period.

period is an OOXML period name: today, yesterday, tomorrow, last7Days, lastWeek, thisWeek, nextWeek, lastMonth, thisMonth or nextMonth.

Implementation

factory ConditionalFormat.timePeriod(
  String period, {
  required CellStyle style,
}) => ConditionalFormat._(
  typeName: 'timePeriod',
  timePeriod: period,
  style: style,
);