SentryLevel.fromName constructor

SentryLevel.fromName(
  1. 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;
}