mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 16:48:41 +00:00
16 lines
418 B
Dart
16 lines
418 B
Dart
import 'package:flutter/foundation.dart';
|
|
|
|
class CustomChangeProvider with ChangeNotifier, DiagnosticableTreeMixin {
|
|
bool _isConnected = false;
|
|
bool get isConnected => _isConnected;
|
|
String plan = "";
|
|
Future<void> updateConnectionState(bool update) async {
|
|
_isConnected = update;
|
|
notifyListeners();
|
|
}
|
|
|
|
Future<void> updatePlan(String newPlan) async {
|
|
plan = newPlan;
|
|
notifyListeners();
|
|
}
|
|
}
|