CompletionResponse class

The response to a completion request, see completeRequestCommand.

Constructors

CompletionResponse(List<CompletionCandidate> candidates, {required int directive})
const
CompletionResponse.error()
A response indicating that an error occurred.
const
CompletionResponse.files()
A response with no candidates where the shell performs native file completion.
const
CompletionResponse.fromResult(CompletionResult result, {String prefix = ''})
Converts a CompletionResult of an option value into a response.
factory
CompletionResponse.nothing()
A response with no candidates where the shell offers nothing.
const

Properties

allowsFileCompletion → bool
Whether the shell may fall back to file completion.
no setter
candidates → List<CompletionCandidate>
The candidate lines. For CompletionDirective.filterFileExtensions these are the file extensions.
final
directive → int
The sum of the CompletionDirective flags.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

format() → String
Formats the response in the wire format, see completeRequestCommand.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

tryParse(String text) → CompletionResponse?
Parses a response in the wire format, the inverse of format.