summaryrefslogtreecommitdiff
path: root/lib/providers/flags_provider.dart
blob: cdb466f65f566f0599cbef2977ea87e2620a598f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import 'package:flutter/material.dart';

class FlagsProvider with ChangeNotifier {
  bool _refreshPosts = false;

  bool get refreshPosts => _refreshPosts;

  set refreshPosts(bool refreshPosts) {
    _refreshPosts = refreshPosts;
    notifyListeners();
  }

  void triggerRefresh() {
    refreshPosts = !refreshPosts;
  }
}