mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
17 lines
341 B
Dart
17 lines
341 B
Dart
import 'package:get/get.dart';
|
|
|
|
class SettingController extends GetxController {
|
|
final tapStatues = <String, bool>{}.obs;
|
|
|
|
// set all tap status to false
|
|
void clearTap() {
|
|
tapStatues.updateAll((key, value) => false);
|
|
}
|
|
|
|
// set one tap status to true
|
|
void onTap(String key) {
|
|
clearTap();
|
|
tapStatues[key] = true;
|
|
}
|
|
}
|