LanguageInfo class final

The information about a language or content type, mostly pulling from data collected by the linguist library.

The included information is not guaranteed to be stable between major or minor releases.

Annotations
  • @immutable

Constructors

LanguageInfo({required String name, required LanguageType type, List<String> aliases = const [], List<String> extensions = const [], List<String> filenames = const [], List<String> interpreters = const [], String? linguistColor, String? aceMode, String? codeMirrorMode, String? codeMirrorMimeType, String? textMateScope, String? group, String? backupFileSystemName})
Create a representation of some common language information, that minimally has a name and a type.
const

Properties

aceMode String?
The name of the mode supporting this language in the Ace code editor.
final
aliases Iterable<String>
Unmodifiable collection of common aliases for the language.
final
codeMirrorMimeType String?
The MIME type (IANA media type) of the mode supporting this language in the CodeMirror 5 editor.
final
codeMirrorMode String?
The name of the mode supporting this language in the CodeMirror 5 editor.
final
extensions Iterable<String>
Unmodifiable collection of common file extensions for the language.
final
filenames Iterable<String>
Unmodifiable collection of common filenames for the language.
final
fileSystemName String
The name of this language or an alternative specified if the original is incompatible with most file systems.
no setter
group String?
The name of a parent language that linguist groups this language with, if there is one specified.
final
hashCode int
The hash code for this object.
no setterinherited
interpreters Iterable<String>
Unmodifiable collection of common interpreters for the language.
final
linguistColor String?
An sRGB color in the CSS hexadecimal format (#RRGGBB) that GitHub uses to represent the language.
final
name String
The common name of the language.
final
primaryExtension String?
The primary extension listed for this language, or null if there are no extensions specified.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textMateScope String?
The TextMate grammar scope for this language, often represented in the form source.language.
final
type LanguageType
The category or common use of the language.
final

Methods

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