LocaleCubit constructor

LocaleCubit()

A Cubit that manages the user's Locale.

The LocaleCubit is responsible for storing and providing the user's Locale. It also provides a method to update the user's Locale.

The LocaleCubit is initialized with the default locale for the app which is Locale('ar', 'SA').

Implementation

LocaleCubit() : super(const Locale('ar', 'SA'));