changeLange method

void changeLange()

Implementation

void changeLange() {
  //toggle button
  isArabic=!isArabic;
  //save to DBStorage
  var code=isArabic?"ar":"en";
  Box.save(key:AppConst.localeKey,value:code);

  var local = Locale(code);
  Get.updateLocale(local);

}