name method

String name()

Gets the name of the value.

Implementation

String name() {
  switch (_value) {
    case 0:
      return 'ALL';
    case 15:
      return 'CSP_VIOLATION_REPORT';
    case 1:
      return 'DOCUMENT';
    case 10:
      return 'EVENT_SOURCE';
    case 8:
      return 'FETCH';
    case 5:
      return 'FONT';
    case 3:
      return 'IMAGE';
    case 12:
      return 'MANIFEST';
    case 4:
      return 'MEDIA';
    case 16:
      return 'OTHER';
    case 14:
      return 'PING';
    case 6:
      return 'SCRIPT';
    case 13:
      return 'SIGNED_EXCHANGE';
    case 2:
      return 'STYLESHEET';
    case 9:
      return 'TEXT_TRACK';
    case 11:
      return 'WEBSOCKET';
    case 7:
      return 'XML_HTTP_REQUEST';
  }
  return _value.toString();
}