Closed HARRRLAN closed 1 month ago
NeatCleanCalendarEvent toCalendarEvent() { return NeatCleanCalendarEvent( text, startTime: start, endTime: end, color: Colors.orange, isAllDay: false, isMultiDay: !DateUtils.isSameDay(start, end), metadata: { 'id': id, 'from': from, 'resource': resource, 'team': team, 'resourceEvent': this }, // Updated metadata ); }
When isMultiDate == true, than metadata == null
NeatCleanCalendarEvent toCalendarEvent() { return NeatCleanCalendarEvent( text, startTime: start, endTime: end, color: Colors.orange, isAllDay: false, isMultiDay: !DateUtils.isSameDay(start, end), metadata: { 'id': id, 'from': from, 'resource': resource, 'team': team, 'resourceEvent': this }, // Updated metadata ); }
When isMultiDate == true, than metadata == null