changeTheme method

Future<void> changeTheme(
  1. int index
)

Implementation

Future<void> changeTheme(int index) async {
  final setting = await localSetting;
  final newSetting = setting.copyWith(themeIndex: index);
  await setValue(themeKey, newSetting);
}