getLanguage abstract method

String getLanguage()

Returns the language code of this locale.

The language code is always normalized to lowercase and represents the ISO 639 language identifier.

Example:

final locale = Locale('EN', 'us');
print(locale.getLanguage()); // Output: "en"

Implementation

String getLanguage();