color property
The color that fills the background of the CalendarResource view in SfCalendar.
Note: If showAvatar property set to true, this color property
applies to color of avatar view.
Defaults to Colors.lightBlue.
See also:
- ResourceViewSettings, to customize the resource view in the calendar.
 - SfCalendar.resourceViewHeaderBuilder, to customize the resource view with a custom widget in calendar.
 
DataSource _getCalendarDataSource() {
 List<Appointment> appointments = <Appointment>[];
 List<CalendarResource> resources = <CalendarResource>[];
 appointments.add(Appointment(
     startTime: DateTime.now(),
     endTime: DateTime.now().add(Duration(hours: 2)),
     isAllDay: true,
     subject: 'Meeting',
     color: Colors.blue,
     resourceIds: <Object>['0001'],
     startTimeZone: '',
     endTimeZone: ''));
 resources.add(CalendarResource(
   id: '0001',
   color: Colors.red
 ));
 return DataSource(appointments, resources);
}
Implementation
final Color color;