changeAppearance method

void changeAppearance(
  1. String name
)

Implementation

void changeAppearance(String name) {
  _currentAppearance =
      _appearances.singleWhere((element) => element.name == name);
  update();
  Get.find<AppSettings>().update();
  SharedPreferences.getInstance()
      .then((value) => value.setString("rixa-appearance", name));
}