sortText property

String get sortText

A string that should be used when comparing this item with other items. When falsy the {@link CompletionItem.label label} is used.

Note that sortText is only used for the initial ordering of completion items. When having a leading word (prefix) ordering is based on how well completions match that prefix and the initial ordering is only used when completions match equally well. The prefix is defined by the {@linkcode CompletionItem.range range}-property and can therefore be different for each completion.

Implementation

_i2.String get sortText => _i5.getProperty(
      this,
      'sortText',
    );
set sortText (String value)

Implementation

set sortText(_i2.String value) {
  _i5.setProperty(
    this,
    'sortText',
    value,
  );
}