twonly-app/lib/src/providers/connection.provider.dart

10 lines
300 B
Dart

import 'package:flutter/foundation.dart';
class CustomChangeProvider with ChangeNotifier, DiagnosticableTreeMixin {
bool _isConnected = false;
bool get isConnected => _isConnected;
Future<void> updateConnectionState(bool update) async {
_isConnected = update;
notifyListeners();
}
}