SentryLevel.fromName constructor
SentryLevel.fromName(
- String name
Implementation
factory SentryLevel.fromName(String name) {
switch (name) {
case 'fatal':
return SentryLevel.fatal;
case 'error':
return SentryLevel.error;
case 'warning':
return SentryLevel.warning;
case 'info':
return SentryLevel.info;
}
return SentryLevel.debug;
}