currentLocale property
Locale?
get
currentLocale
Gets the current locale being used by the service.
Returns the currently active Locale if the service has been initialized, or null if the service has not been initialized yet.
This property is useful for determining the current language setting or for conditional logic based on the active locale.
Implementation
Locale? get currentLocale => _currentLocale;