setEventType method
Implementation
void setEventType(String type, ImageRenderViewModel renderViewModel, bool enable) {
if (enable) {
renderViewModel.imageEventDispatcher.addEventType(type);
} else {
renderViewModel.imageEventDispatcher.removeEventType(type);
}
}