code property
String
get
code
The language code of the locale.
This is equivalent to Locale.languageCode and can be used to retrieve the language code for the current locale.
Implementation
String get code => locale.languageCode;