CompletionSuggestionKind constructor

CompletionSuggestionKind(
  1. String name
)

Implementation

factory CompletionSuggestionKind(String name) {
  switch (name) {
    case 'ARGUMENT_LIST':
      return ARGUMENT_LIST;
    case 'IMPORT':
      return IMPORT;
    case 'IDENTIFIER':
      return IDENTIFIER;
    case 'INVOCATION':
      return INVOCATION;
    case 'KEYWORD':
      return KEYWORD;
    case 'NAMED_ARGUMENT':
      return NAMED_ARGUMENT;
    case 'OPTIONAL_ARGUMENT':
      return OPTIONAL_ARGUMENT;
    case 'OVERRIDE':
      return OVERRIDE;
    case 'PARAMETER':
      return PARAMETER;
    case 'PACKAGE_NAME':
      return PACKAGE_NAME;
  }
  throw Exception('Illegal enum value: $name');
}