language top-level property

Facet<Language, Language?> get language

The facet used to associate a language with an editor state.

Used by Language object's extension property (so you don't need to manually wrap your languages in this). Can be used to access the current language on a state.

Implementation

Facet<Language, Language?> get language {
  _ensureInitialized();
  return _language!;
}