name method

String name()

Gets the name of the value.

Implementation

String name() {
  switch (_value) {
    case 4:
      return 'CANCELLED';
    case 2:
      return 'FILE_ALREADY_EXISTS';
    case 1:
      return 'INVALID_PATH';
    case 3:
      return 'KIND_NOT_SUPPORTED';
    case 0:
      return 'SUCCESS';
  }
  return _value.toString();
}