LocaleProvider constructor

LocaleProvider({
  1. required SharedPreferences prefs,
})

Creates a LocaleProvider instance with the given SharedPreferences.

The prefs parameter is required and should be a properly initialized SharedPreferences instance for locale persistence.

Implementation

LocaleProvider({required SharedPreferences prefs}) : _prefs = prefs;