name method

String name()

Gets the name of the value.

Implementation

String name() {
  switch (_value) {
    case 4:
      return 'DONE';
    case 2:
      return 'HEADERS_RECEIVED';
    case 3:
      return 'LOADING';
    case 1:
      return 'OPENED';
    case 0:
      return 'UNSENT';
  }
  return _value.toString();
}