createEvent method
void
createEvent()
Implementation
void createEvent() {
if (widget.onCreatePressed != null) {
widget.onCreatePressed!();
} else {
debugPrint("onCreatePressed is not configured");
}
}