~cytrogen/fluent-reader-mobile

ref: d61062f4139b621c3e58f6c69f815e46ba83ec65 fluent-reader-mobile/lib/models/groups_model.dart -rw-r--r-- 373 bytes
d61062f4 — Bruce Liu add unread sources only option 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);
  }
}