lang property

Locale get lang

Returns the user's locale as a Locale enum value based on the value of language

Implementation

Locale get lang => Locale.values.firstWhere((element) => element.locale == _lang);