id property
The unique id for the CalendarResource view of SfCalendar.
See also:
- Appointment.resourceIds, the ids of the CalendarResource that shares an Appointment.
- TimeRegion.resourceIds, the ids of the CalendarResource that shares an TimeRegion.
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',
));
return DataSource(appointments, resources);
}
Implementation
final Object id;