TimeRegion constructor

TimeRegion({
  1. required DateTime startTime,
  2. required DateTime endTime,
  3. String? text,
  4. String? recurrenceRule,
  5. Color? color,
  6. bool enablePointerInteraction = true,
  7. List<DateTime>? recurrenceExceptionDates,
  8. List<Object>? resourceIds,
  9. String? timeZone,
  10. IconData? iconData,
  11. TextStyle? textStyle,
})

Creates a Time region for timeslot views in calendar.

The time region used to highlight and block the specific timeslots in timeslots view of SfCalendar.

Implementation

TimeRegion({
  required this.startTime,
  required this.endTime,
  this.text,
  this.recurrenceRule,
  this.color,
  this.enablePointerInteraction = true,
  this.recurrenceExceptionDates,
  this.resourceIds,
  this.timeZone,
  this.iconData,
  this.textStyle,
});