~cytrogen/fluent-reader-mobile

ref: 0b77b4664f92ca4fce2f347c33fc4298f7bf9c26 fluent-reader-mobile/lib/models/groups_model.dart -rw-r--r-- 373 bytes
0b77b466 — 刘浩远 add feedbin support 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);
  }
}