twonly-app/lib/src/providers/connection_provider.dart
2025-05-07 23:39:39 +02:00

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();
}
}