getDevicelanguageCode static method

String getDevicelanguageCode()

Returns the device language using the current window locale.

Implementation

static String getDevicelanguageCode() {
  return WidgetsBinding.instance.platformDispatcher.locale.languageCode;
}