getLang function

String? getLang(
  1. Locale? l
)

Implementation

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