RequestErrorCode constructor
RequestErrorCode(
- String name
Implementation
factory RequestErrorCode(String name) {
switch (name) {
case 'INVALID_OVERLAY_CHANGE':
return INVALID_OVERLAY_CHANGE;
case 'INVALID_PARAMETER':
return INVALID_PARAMETER;
case 'PLUGIN_ERROR':
return PLUGIN_ERROR;
case 'UNKNOWN_REQUEST':
return UNKNOWN_REQUEST;
}
throw Exception('Illegal enum value: $name');
}