name method

String name()

Gets the name of the value.

Implementation

String name() {
  switch (_value) {
    case 4:
      return 'DEBUG';
    case 3:
      return 'ERROR';
    case 1:
      return 'LOG';
    case 0:
      return 'TIP';
    case 2:
      return 'WARNING';
  }
  return _value.toString();
}