setEventType method

void setEventType(
  1. String type,
  2. ImageRenderViewModel renderViewModel,
  3. bool enable
)

Implementation

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