updateEvent static method
Implementation
static Future<void> updateEvent(
BuildContext context, {
required String eventId,
required Event event,
Function? onPermissionDenied,
Function? onError,
Function? onSubmitted
}) async {
try {
String response = await _updateEvent(eventId: eventId, event: event);
if (onSubmitted != null) {
onSubmitted(response);
}
} catch (e) {
debugPrint("Error: $e");
if (onError != null) {
onError();
}
}
}