changeLocale method
- Locale locale
Updates the user's Locale.
This method updates the user's Locale and emits the new locale to all the subscribers of the LocaleCubit.
The locale
parameter is the new Locale that the user
wants to use.
Implementation
void changeLocale(Locale locale) {
emit(locale);
}