appendChoice method

SnippetString appendChoice(
  1. List<String> values, [
  2. num? number
])

Builder-function that appends a choice (${1|a,b,c|}) to the {@linkcode SnippetString.value value} of this snippet string.

@param values The values for choices - the array of strings @param number The number of this tabstop, defaults to an auto-increment value starting at 1. @returns This snippet string.

Implementation

_i3.SnippetString appendChoice(
  _i2.List<_i2.String> values, [
  _i2.num? number,
]) =>
    _i5.callMethod(
      this,
      'appendChoice',
      [
        values,
        number ?? _i6.undefined,
      ],
    );