setAnyLanguage static method

dynamic setAnyLanguage(
  1. BuildContext context,
  2. Locale locale
)

Implementation

static setAnyLanguage(BuildContext context, Locale locale ) {
  //set in static
  // context.setLocale (   locale) ;

  //save in cache
  if( locale.languageCode ==  "ar" ) {
    _setCacheArabic( true);
  } else {
    _setCacheArabic( false);
  }
}