getLang function

String getLang(
  1. Locale? l
)

Implementation

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