supportedLanguages property

List<String>? get supportedLanguages

An array of language identifiers that are supported by this controller. Any language identifier from {@linkcode languages.getLanguages getLanguages} is possible. When falsy all languages are supported.

Samples:

// support JavaScript and TypeScript
myController.supportedLanguages = ['javascript', 'typescript']

// support all languages
myController.supportedLanguages = undefined; // falsy
myController.supportedLanguages = []; // falsy

Implementation

_i2.List<_i2.String>? get supportedLanguages => (_i5.getProperty(
      this,
      'supportedLanguages',
    ) as _i2.List?)
        ?.cast();
set supportedLanguages (List<String>? value)

Implementation

set supportedLanguages(_i2.List<_i2.String>? value) {
  _i5.setProperty(
    this,
    'supportedLanguages',
    value ?? _i6.undefined,
  );
}