Future<void> flushSettings({bool write = false}) async { if ( write ) writeSettings(); await SettingsManager.instance.flush(_getRoot()!.state); }