INNER CODE UNIT · Dart
_ConduitAppState
gwitko/Conduit · lib/main.dart:125
class _ConduitAppState extends State<ConduitApp> with WidgetsBindingObserver {
final _backgroundKeepalive = const TerminalBackgroundKeepalive();
AppLifecycleState _lifecycleState = AppLifecycleState.resumed;
bool _keepaliveRunning = false;
int _keepaliveSessionCount = 0;
bool _notificationPermissionRequested = false;
@override
void initState() {
super.initState();
WidgetsBinding.instance.addObserver(this);
widget.workspaceController.addListener(_syncBackgroundKeepalive);
widget.themeController.addListener(_syncTerminalPreferences);
_syncTerminalPreferences();
}
void _syncTerminalPreferences() {
widget.workspaceController.setEnterSequence(