VooCalendarEventWidget constructor

const VooCalendarEventWidget({
  1. Key? key,
  2. VooCalendarEvent? event,
  3. required VooCalendarEventRenderInfo renderInfo,
  4. Widget? child,
  5. Widget builder(
    1. BuildContext context,
    2. VooCalendarEvent event,
    3. VooCalendarEventRenderInfo renderInfo
    )?,
})

Creates a VooCalendarEventWidget with proper dimension constraints

Either child or builder must be provided (but not both). If using builder, event is required.

Implementation

const VooCalendarEventWidget({super.key, this.event, required this.renderInfo, this.child, this.builder})
  : assert((child != null) != (builder != null), 'Either child or builder must be provided, but not both.'),
    assert(builder == null || event != null, 'When using builder, event must be provided.');