getLang function

String getLang(
  1. Locale l
)

Implementation

String getLang(Locale l) =>
    l.countryCode != null && l.countryCode?.isEmpty == true ? l.languageCode : l.toString();