CalendarResource constructor

CalendarResource({
  1. String displayName = '',
  2. required Object id,
  3. ImageProvider<Object>? image,
  4. Color color = Colors.lightBlue,
})

Creates an resource data for SfCalendar.

An object that contains properties to hold the detailed information about the data, which will be rendered in SfCalendar.

Implementation

CalendarResource({
  this.displayName = '',
  required this.id,
  this.image,
  this.color = Colors.lightBlue,
});