getLanguageCode static method

String getLanguageCode({
  1. BuildContext? context,
})

Get just the language code

Implementation

static String getLanguageCode({BuildContext? context}) {
  return getCurrentLocale(context: context).languageCode;
}