toIntValue method
Implementation
int toIntValue() {
switch (this) {
case EglError.success:
return EGL_SUCCESS;
case EglError.notInitialized:
return EGL_NOT_INITIALIZED;
case EglError.badAccess:
return EGL_BAD_ACCESS;
case EglError.badAlloc:
return EGL_BAD_ALLOC;
case EglError.badAttribute:
return EGL_BAD_ATTRIBUTE;
case EglError.badContext:
return EGL_BAD_CONTEXT;
case EglError.badConfig:
return EGL_BAD_CONFIG;
case EglError.badCurrentSurface:
return EGL_BAD_CURRENT_SURFACE;
case EglError.badDisplay:
return EGL_BAD_DISPLAY;
case EglError.badSurface:
return EGL_BAD_SURFACE;
case EglError.badMatch:
return EGL_BAD_MATCH;
case EglError.badParameter:
return EGL_BAD_PARAMETER;
case EglError.badNativePixmap:
return EGL_BAD_NATIVE_PIXMAP;
case EglError.badNativeWindow:
return EGL_BAD_NATIVE_WINDOW;
case EglError.contextLost:
return EGL_CONTEXT_LOST;
default:
throw UnsupportedError('Unsupported value: $this');
}
}