toInt method Null safety

int toInt()

Return an integer.

Implementation

int toInt() {
  switch (this) {
    case EventTypes.invalid:
      return SYZ_EVENT_TYPES.SYZ_EVENT_TYPE_INVALID;
    case EventTypes.looped:
      return SYZ_EVENT_TYPES.SYZ_EVENT_TYPE_LOOPED;
    case EventTypes.finished:
      return SYZ_EVENT_TYPES.SYZ_EVENT_TYPE_FINISHED;
    case EventTypes.userAutomation:
      return SYZ_EVENT_TYPES.SYZ_EVENT_TYPE_USER_AUTOMATION;
  }
}