recurrenceRule property

String? recurrenceRule
final

Used to specify the recurrence of TimeRegion. It used to recur the TimeRegion and it value like 'FREQ=DAILY;INTERVAL=1'

Defaults to null.

See also;

 Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.week,
       specialRegions: _getTimeRegions(),
     ),
   );
 }

 List<TimeRegion> _getTimeRegions() {
   final List<TimeRegion> regions = <TimeRegion>[];
   regions.add(TimeRegion(
       startTime: DateTime.now(),
       endTime: DateTime.now().add(Duration(hours: 1)),
       enablePointerInteraction: false,
       timeZone: 'Eastern Standard Time',
       recurrenceRule: 'FREQ=DAILY;INTERVAL=1',
       textStyle: TextStyle(color: Colors.black45, fontSize: 15),
       color: Colors.grey.withOpacity(0.2),
       text: 'Break'));

   return regions;
 }

Implementation

final String? recurrenceRule;