SearchResultKind constructor

SearchResultKind(
  1. String name
)

Implementation

factory SearchResultKind(String name) {
  switch (name) {
    case 'DECLARATION':
      return DECLARATION;
    case 'INVOCATION':
      return INVOCATION;
    case 'READ':
      return READ;
    case 'READ_WRITE':
      return READ_WRITE;
    case 'REFERENCE':
      return REFERENCE;
    case 'UNKNOWN':
      return UNKNOWN;
    case 'WRITE':
      return WRITE;
  }
  throw Exception('Illegal enum value: $name');
}