i have implemented localization with bloc pattern but now I wanna store the value of language in sharepreferences so that next time if the user already selected language it will skip select language flow and fetch it from local storage. this is my code for language state.
class LanguageState extends Equatable {
final Locale locale; const LanguageState({required this.locale}); factory LanguageState.initial() => const LanguageState(locale: Locale('en', 'US'));
LanguageState copyWith({required Locale locale}) => LanguageState(locale: locale);
@override // TODO: implement props List get props => [locale]; }