locale top-level property

Locale? locale
getter/setter pair

locale method to set the value of locale This method is used to set the locale of the app This is very useful for localization This is a global variable

Example:

locale = Locale('en', 'US');

Implementation

Locale? locale;