VooCalendarEventWidget constructor
const
VooCalendarEventWidget({
- Key? key,
- VooCalendarEvent? event,
- required VooCalendarEventRenderInfo renderInfo,
- Widget? child,
- Widget builder(
- BuildContext context,
- VooCalendarEvent event,
- 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.');