aboutsummaryrefslogtreecommitdiffstats
path: root/lib/providers/service_status.dart
blob: 595c92ed0a1414248a25130cdf905ee8e54ea66e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import 'package:flutter/material.dart';

class ServiceStatusProvider extends ChangeNotifier {
  bool _isServiceOnline = false;

  bool get isServiceOnline => _isServiceOnline;

  void setServiceStatus(bool isOnline) {
    _isServiceOnline = isOnline;
    notifyListeners(); // Notify listeners (i.e., widgets that depend on this value) about the change
  }
}