~cytrogen/fluent-reader-mobile

ref: 2dedfb7640af6719d3d4c1d2f699a717dbb186f2 fluent-reader-mobile/lib/models/groups_model.dart -rw-r--r-- 373 bytes
2dedfb76 — Bruce Liu add splash screens 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
import 'package:fluent_reader_lite/utils/store.dart';
import 'package:flutter/cupertino.dart';

class GroupsModel with ChangeNotifier {
  Map<String, List<String>> _groups = Store.getGroups();

  Map<String, List<String>> get groups => _groups;
  set groups(Map<String, List<String>> groups) {
    _groups = groups;
    notifyListeners();
    Store.setGroups(groups);
  }
}