I have a custom widget which has a button. I want to create VoidCallback faction to return data from it.
onDayPressed: (DateTime date, List<Event> events){
// I want to return date time to original class when the user changes the date
}
i try to do this but doesn't work
onDayPressed: (DateTime date, List<Event> events) => widget.onDayChanged,
// on original class
CustomCalender(onDayChanged: (){print("HI");}),
I'm using this flutter package
flutter_calendar_carousel